NO FRAMES

Class IloNumExpr

Definition file: ilconcert/iloexpression.h
The class of numeric expressions in a Concert model.

Numeric expressions in Concert Technology 2.0 are represented using the class IloNumExpr.

Constructor Summary
public IloNumExpr()
public IloNumExpr(IloNumExpr::ImplClass *)
public IloNumExpr(const IloNumExprArg)
public IloNumExpr(const IloEnv, IloNum)
public IloNumExpr(const IloNumLinExprTerm)
public IloNumExpr(const IloIntLinExprTerm)
public IloNumExpr(const IloExpr &)
Method Summary
public IloNumExpr::ImplClass *getImpl()
public IloNumExpr &operator *=(IloNum)
public IloNumExpr &operator+=(const IloNumExprArg)
public IloNumExpr &operator+=(IloNum)
public IloNumExpr &operator-=(const IloNumExprArg)
public IloNumExpr &operator-=(IloNum)
public IloNumExpr &operator/=(IloNum)
Inherited Methods from IloNumExprArg
getImpl
Inherited Methods from IloExtractable
end, getEnv, getId, getImpl, getName, getObject, setName, setObject
Inner Class
IloNumExpr::NonLinearExpression The class of exceptions thrown if a numerical constant of a non-linear expression is set or queried.
Constructor Detail

IloNumExpr

public IloNumExpr()
This constructor creates an empty handle. You must initialize it before you use it.

IloNumExpr

public IloNumExpr(IloNumExpr::ImplClass * impl)
This constructor creates a handle object from a pointer to an implementation object.

IloNumExpr

public IloNumExpr(const IloNumExprArg expr)

This constructor creates a numeric expression using the undocumented class IloNumExprArg.


IloNumExpr

public IloNumExpr(const IloEnv env, IloNum )

This constructor creates a numeric expression in the environment indicated by env. It may be used to build other expressions from variables belonging to env.


IloNumExpr

public IloNumExpr(const IloNumLinExprTerm term)

This constructor creates a numeric expression using the undocumented class IloNumLinExprTerm.


IloNumExpr

public IloNumExpr(const IloIntLinExprTerm term)

This constructor creates a numeric expression using the undocumented class IloIntLinExprTerm.


IloNumExpr

public IloNumExpr(const IloExpr & expr)

This is the copy constructor for this class.


Method Detail

getImpl

public IloNumExpr::ImplClass * getImpl()
This member function returns a pointer to the implementation object of the invoking handle.

operator *=

public IloNumExpr & operator *=(IloNum val)

This operator is recommended for building a Concert Technology expression in a loop. It is more efficient than x = x * ...


operator+=

public IloNumExpr & operator+=(const IloNumExprArg expr)

This operator is recommended for building a Concert Technology expression in a loop. It is more efficient than x = x + ...


operator+=

public IloNumExpr & operator+=(IloNum val)

This operator is recommended for building a Concert Technology expression in a loop. It is more efficient than x = x + ...


operator-=

public IloNumExpr & operator-=(const IloNumExprArg expr)

This operator is recommended for building a Concert Technology expression in a loop. It is more efficient than x = x - ...


operator-=

public IloNumExpr & operator-=(IloNum val)

This operator is recommended for building a Concert Technology expression in a loop. It is more efficient than x = x - ...


operator/=

public IloNumExpr & operator/=(IloNum val)

This operator is recommended for building a Concert Technology expression in a loop. It is more efficient than x = x / ...