FRAMES NO FRAMES

IlcMin

public IlcIntExp IlcMin(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 least of the integer elements that are assigned to the constrained set variable setVar.

The minimum value of the expression is the least possible integer element of the variable setVar.

The maximum value of the expression is the least required integer element of the variable setVar, or, if there is none, then the greatest possible element.

Because the minimum 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:


IlcMin

public IlcIntExp IlcMin(const IlcIntSetVar aSet, const IlcIntToIntFunction F, const IlcBool makeEmptySetPropagation=IlcTrue)
public IlcIntExp IlcMin(const IlcIntSetVar aSet, const IlcIntToIntExpFunction F, const IlcBool makeEmptySetPropagation=IlcTrue)
public IlcIntExp IlcMin(const IlcAnySetVar aSet, const IlcAnyToIntFunction F, const IlcBool makeEmptySetPropagation=IlcTrue)
public IlcIntExp IlcMin(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 least 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 least value returned by F when applied to the possible elements of the variable setVar. If F returns an integer expression, it corresponds to the least lower bound of F(x).

The maximum value of the expression is the least value returned by F when applied to the required elements of the variable setVar. If there is no required element, it corresponds to the greatest 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 upper bounds of F(x).

Because the minimum 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 value and the maximum value returned by F when applied to the possible elements of setVar.

See Also:


IlcMin

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

This function returns the minimum of its argument or arguments.

When its argument is an array of constrained expressions, this function creates a new constrained expression equal to the minimum of its argument.

When at least one of its arguments is a constrained expression, this function creates a new constrained expression equal to the minimum of its 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:


IlcMin

public IlcFloatExp IlcMin(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 minimum returned by the function f over its domain, aSet.

See Also: