This method returns the numeric values of all objective gaps in a multi-objective function associated with the CP engine.

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

Syntax

C#
public double[] GetObjGaps()

Remarks

When this method is used to obtain values specified via StaticLex(array<INumExpr>[]()[][], String), then the gap values follow a pattern. First, there will be the gaps of 0 or more criteria whose values are within the optimality tolerance specified (see [!:NumParam#OptimalityTolerance] and [!:NumParam#RelativeOptimalityTolerance]). If not all the criteria were within the optimality tolerance, then will come the gap of the first criterion which is not within this tolerance. (When examining the log, this is the value of the gap which you will see displayed, along with the rank of the criterion to which it corresponds.) Finally, should there be more criteria after this, then their gap values will be positive infinity.

For the calculation of the gap, see GetObjGap(Int32).

See Also