Skip to main content
FRAMES NO FRAMES

IlcMax

public IlcIntExp IlcMax(IlcInt exp1, const IlcIntExp 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(IlcInt exp1, 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 IlcFloat IlcMax(IlcFloat a, IlcFloat b)
Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Returns the maximum of its argument or arguments.

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: