This method uses the invoking CP Optimizer to instantiate the variables in solution with their saved values. The value of any objective added to the solution is not restored. If the solution does not violate any constraints of the model extracted by the invoking CP Optimizer, then ITrue is returned and the state of the constrained variables in CP Optimizer reflect those stored in solution. Otherwise CP Optimizer's state remains unchanged and IFalse is returned.

Namespace: ILOG.CP
Assembly: oplall (in oplall.dll)

Syntax

C#
public virtual bool Restore(
	ISolution solution
)

Parameters

solution
Type: ILOG.Concert..::..ISolution

See Also