IBM ILOG Scheduler User's Manual > Advanced Concepts > Scheduling with Discrete Resources: the Ship-loading Problem > Defining the Problem, Designing a Model > Setting the Enforcement Level

The following code allows you to specify the enforcement level from the command line. The enforcement level allows specifying the effort with which the constraints are enforced on a given resource.

    IloEnforcementLevel level = IloBasic;
    if (argc > 1) {
      if (!strcmp(argv[1], "IloLow"))
        level = IloLow;
      else if (!strcmp(argv[1], "IloMediumLow"))
        level = IloMediumLow;
      else if (!strcmp(argv[1], "IloBasic"))
        level = IloBasic;
      else if (!strcmp(argv[1], "IloMediumHigh"))
        level = IloMediumHigh;
      else if (!strcmp(argv[1], "IloHigh"))
        level = IloHigh;
      else if (!strcmp(argv[1], "IloExtended"))
        level = IloExtended;
    }