IBM ILOG Scheduler User's Manual > Getting Started with Scheduler > Adding Breaks > Define the Problem, Design a Model > Set the Enforcement Level

The member function IloResourceParam ::setCapacityEnforcement allows you to set the enforcement level on resource usage. The enforcement level IloMediumHigh means that Scheduler will spend more effort at enforcing this constraint than it would by default.

  /* SET ENFORCEMENT LEVEL */
  IloSchedulerEnv schedEnv(env);
  IloResourceParam resParam = schedEnv.getResourceParam();
  resParam.setCapacityEnforcement(IloMediumHigh);