IBM ILOG Scheduler User's Manual > Integrated Applications > Extending Transition Cost Usage > Describing the Problem > Defining Machines

A machine is created as a unary resource with a capacity enforcement level of IloHigh.

IloUnaryResource
MakeMachine(IloModel model, const char* name) {
  IloUnaryResource machine(model.getEnv(), name);
  machine.setCapacityEnforcement(IloHigh);
  return machine;
}