FRAMES NO FRAMES

IloCommitDelta

public IlcGoal IloCommitDelta(IloSolver solver, IloSolution solution, IloSolution delta)
public IloGoal IloCommitDelta(IloEnv env, IloSolution solution, IloSolution delta)
Definition file: ilsolver/iimls.h
Include file: <ilsolver/iimls.h>

This function takes solution solution and delta delta, and returns a goal for the specified solver that:

  1. Restores delta.
  2. Restores the part of solution that does not appear in delta.
  3. Saves the resulting solution. The resulting solution consists of solution as modified by delta.

The goal can fail at 1) or 2) if any constraints are violated, that is, the goal fails if the proposed change to the solution is illegal.

Implementation

IloCommitDelta can be implemented as:

 IlcGoal IloCommitDelta(solver, solution, delta) {
   return IlcAnd(IloTestDelta(solver, solution, delta),
                 IloStoreSolution(solver, solution));
 }

For more information, see IloSolution in the IBM ILOG Concert Technology Reference Manual.

See Also: