FRAMES NO FRAMES

IlcMax

public IlcFloatExp IlcMax(const IlcIntSetVar aSet, const IlcIntToFloatExpFunction f, const IlcBool makeEmptySetPropagation=IlcTrue)
Definition file: ilsolver/setcst.h
Include file: <ilsolver/ilosolver.h>

This function creates and returns a floating-point expression constrained to be the maximum returned by the function f over its domain, aSet.

See Also:


IlcMax

public IlcIntExp IlcMax(const IlcIntSetVar aSet, const IlcIntToIntFunction F, const IlcBool makeEmptySetPropagation=IlcTrue)
public IlcIntExp IlcMax(const IlcIntSetVar aSet, const IlcIntToIntExpFunction F, const IlcBool makeEmptySetPropagation=IlcTrue)
public IlcIntExp IlcMax(const IlcAnySetVar aSet, const IlcAnyToIntFunction F, const IlcBool makeEmptySetPropagation=IlcTrue)
public IlcIntExp IlcMax(const IlcAnySetVar aSet, const IlcAnyToIntExpFunction F, const IlcBool makeEmptySetPropagation=IlcTrue)
Definition file: ilsolver/setcst.h
Include file: <ilsolver/ilosolver.h>

These functions create and return a new constrained expression equal to the greatest of the values returned by the function F applied to the elements assigned to the constrained set variable setVar.

The value returned by the function F can be an integer value (IlcInt) or an integer constrained expression (IlcIntExp).

The minimum value of the expression is the greatest value returned by F when applied to the required elements of the variable setVar. If there is no required element, the minimum value of the expression corresponds to the least value returned by F when applied to the possible elements of setVar. When F returns an integer expression, the maximum value of the expression is computed with the lower bounds of F(x).

The maximum value of the expression is the greatest value returned by F when applied to the possible elements of the variable setVar. If F returns an integer expression, it corresponds to the greatest upper bound of F(x).

Because the maximum value of an empty set has no meaning, the bounds of this expression are computed only when the set variable is surely not empty, that is, when its cardinality is greater than 0 (zero). The initial bounds of the expression are the minimum and the maximum value returned by F when applied to the possible elements of setVar.

See Also:


IlcMax

public IlcIntExp IlcMax(IlcInt exp1, const IlcIntExp exp2)
public IlcFloat IlcMax(const IlcFloat exp1, const IlcFloat exp2)
public IlcIntExp IlcMax(const IlcIntExp exp1, IlcInt exp2)
public IlcIntExp IlcMax(const IlcIntExp exp1, const IlcIntExp exp2)
public IlcIntExp IlcMax(const IlcIntVarArray array)
public IlcInt IlcMax(const IlcIntArray array)
public IlcInt IlcMax(const IlcInt exp1, const IlcInt exp2)
public IlcFloatExp IlcMax(const IlcFloatExp exp1, IlcFloat exp2)
public IlcFloatExp IlcMax(IlcFloat exp1, const IlcFloatExp exp2)
public IlcFloatExp IlcMax(const IlcFloatExp exp1, const IlcFloatExp exp2)
public IlcFloatExp IlcMax(const IlcFloatVarArray array)
public IlcFloat IlcMax(const IlcFloatArray array)
public IlcIntToIntStepFunction IlcMax(const IlcIntToIntStepFunction & f1, const IlcIntToIntStepFunction & f2)
Definition file: ilsolver/ilcint.h
Include file: <ilsolver/ilosolver.h>

This function returns the maximum of its argument or arguments.

When its argument is an array of constrained expressions, it creates a new constrained expression equal to the maximum of the elements in that array.

When its arguments include at least one constrained expression, it creates a new constrained expression equal to the maximum of the arguments.

When both its arguments are numeric (that is, values of type IloInt or IloNum), it simply creates and returns a value of that type.

See Also:


IlcMax

public IlcIntExp IlcMax(const IlcIntSetVar aSet, const IlcBool makeEmptySetPropagation=IlcTrue)
Definition file: ilsolver/setcst.h
Include file: <ilsolver/ilosolver.h>

This function creates and returns a new constrained expression equal to the greatest of the integer elements that are assigned to the constrained set variable setVar.

The minimum value of the expression is the largest required integer element of the variable setVar, or, if there is none, the least possible element.

The maximum value of the expression is the largest possible integer element of the variable setVar.

Because the maximum value of an empty set has no meaning, the bounds of this expression are computed only when the set variable is surely not empty, that is, when its cardinality is greater than 0 (zero). The initial bounds of the expression are the minimum and the maximum possible elements.

See Also: