Skip to main content
FRAMES NO FRAMES

IloSquare

public IloNumQuadExprTerm IloSquare(const IloNumVar var)
public IloIntQuadExprTerm IloSquare(const IloIntVar var)
Definition file: ilconcert/iloexpression.h
Returns the square of its argument.

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.

IloSquare returns the square of its argument variable (that is, val*val.

What Is Extracted

IloSquare is extracted by an instance of IloCplex as a quadratic term. If the quadratic term is positive semi-definite, it may appear in an objective function or constraint.

IloSquare is extracted by an instance of IloCP or IloSolver as an instance of IlcSquare.


IloSquare

public IloNumQuadExprTerm IloSquare(const IloNumLinExprTerm term)
public IloIntQuadExprTerm IloSquare(const IloIntLinExprTerm term)
Definition file: ilconcert/iloexpression.h
Returns the square of its argument.

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.

IloSquare returns the square of its argument variable (that is, val*val.

What Is Extracted

IloSquare is extracted by an instance of IloCplex as a quadratic term. If the quadratic term is positive semi-definite, it may appear in an objective function or constraint.

IloSquare is extracted by an instance of IloCP or IloSolver as an instance of IlcSquare.


IloSquare

public IloNumExprArg IloSquare(const IloNumExprArg arg)
public IloNum IloSquare(IloNum val)
public IloInt IloSquare(IloInt val)
public IloInt IloSquare(int val)
public IloIntExprArg IloSquare(const IloIntExprArg arg)
Definition file: ilconcert/iloexpression.h
Returns the square of its argument.

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.

IloSquare returns the square of its argument (that is, val*val or expr*expr).

What Is Extracted

IloSquare is extracted by an instance of IloCplex as a quadratic term. If the quadratic term is positive semi-definite, it may appear in an objective function or constraint.

IloSquare is extracted by an instance of IloCP or IloSolver as an instance of IlcSquare.