Skip to main content
FRAMES NO FRAMES

IloPower

public IloNumExprArg IloPower(const IloNumExprArg base, const IloNumExprArg exponent)
public IloNum IloPower(IloNum val1, IloNum val2)
public IloNumExprArg IloPower(const IloNumExprArg base, IloNum exponent)
public IloNumExprArg IloPower(IloNum base, const IloNumExprArg exponent)
Definition file: ilconcert/iloexpression.h
Returns the power of its arguments.

Concert Technology offers predefined functions that return an expression from an algebraic function over expressions. These predefined functions also return a numeric value from an algebraic function over numeric values as well.

IloPower returns the result of raising its base argument to the power of its exponent argument, that is, base**exponent. If base is a floating-point value or variable, then exponent must be greater than or equal to 0 (zero).

What Is Extracted

An instance of IloCplex can extract only quadratic terms that are positive semi-definite when they appear in an objective function or in constraints of a model.

An instance of IloSolver or an instance of IloCP extracts the object returned by IloPower.