Skip to main content
FRAMES NO FRAMES

Class IloBlackbox

Definition file: ilcp/cpext.h
Map of IloBlackboxIloBlackboxIloBlackboxIloExtractable

This is the handle class created by the macros ILOBLACKBOX. It represents a black-box expression in the model.

An instance of this class is similar to an IloNumExpr or an array of IloNumExpr representing the value(s) of a black-box expression.

See Also:

Method Summary
public voidadd(IloIntervalSequenceVar x)
public voidadd(IloIntervalVar x)
public voidadd(IloNumExpr x)
public voidadd(IloIntExpr x)
public voidadd(IloIntVar x)
public IloIntgetArity() const
public const char *getFunctionName() const
public operator IloNumExpr()
public IloNumExproperator[](IloInt i)
public voidremove(IloIntervalSequenceVar x)
public voidremove(IloIntervalVar x)
public voidremove(IloNumExpr x)
public voidremove(IloIntExpr x)
public voidremove(IloIntVar x)
Inherited Methods from IloExtractable
asConstraint, asIntExpr, asModel, asNumExpr, asObjective, asVariable, end, getEnv, getId, getImpl, getName, getObject, IloExtractable, isConstraint, isIntExpr, isModel, isNumExpr, isObjective, isVariable, removeFromAll, setLocation, setName, setObject
Method Detail

add

public void add(IloIntervalSequenceVar x)

The scope of a black-box expression is the set of variables or expressions used to compute the value(s) of the black-box. The scope is computed automatically from the arguments of the black-box function.

This member function adds variable x to the scope of the invoking black-box expression if it was not already in the scope.


add

public void add(IloIntervalVar x)

The scope of a black-box expression is the set of variables or expressions used to compute the value(s) of the black-box. The scope is computed automatically from the arguments of the black-box function.

This member function adds variable x to the scope of the invoking black-box expression if it was not already in the scope.


add

public void add(IloNumExpr x)

The scope of a black-box expression is the set of variables or expressions used to compute the value(s) of the black-box. The scope is computed automatically from the arguments of the black-box function.

This member function adds expression x to the scope of the invoking black-box expression if was not already in the scope.


add

public void add(IloIntExpr x)

The scope of a black-box expression is the set of variables or expressions used to compute the value(s) of the black-box. The scope is computed automatically from the arguments of the black-box function.

This member function adds expression x to the scope of the invoking black-box expression if was not already in the scope.


add

public void add(IloIntVar x)

The scope of a black-box expression is the set of variables or expressions used to compute the value(s) of the black-box. The scope is computed automatically from the arguments of the black-box function.

This member function adds variable x to the scope of the invoking black-box expression if was not already in the scope.


getArity

public IloInt getArity() const

This member function returns the arity of the black-box expression that is, the number of variables and expressions in its scope.


getFunctionName

public const char * getFunctionName() const

This member function returns the name of the black-box expression that was used in the macro.


operator IloNumExpr

public operator IloNumExpr()

This automatic type conversion operator returns the numerical expression that represents the value of invoking black-box expression in case of a single-value black-box. Any instance of IloBlackbox can be used as a regular numerical expression IloNumExpr in the Concert model. In case of multi-valued black-box expression, this numerical expression will represent the first component of the returned vector of values.


operator[]

public IloNumExpr operator[](IloInt i)

This member function returns the numerical expression that represents the value of the ith component of the vector of values computed by the invoking black-box expression.


remove

public void remove(IloIntervalSequenceVar x)

The scope of a black-box expression is the set of variables or expressions used to compute the value(s) of the black-box. The scope is computed automatically from the arguments of the black-box function.

This member function removes variable x from the scope of the invoking black-box expression if it was contained in the scope.


remove

public void remove(IloIntervalVar x)

The scope of a black-box expression is the set of variables or expressions used to compute the value(s) of the black-box. The scope is computed automatically from the arguments of the black-box function.

This member function removes variable x from the scope of the invoking black-box expression if it was contained in the scope.


remove

public void remove(IloNumExpr x)

The scope of a black-box expression is the set of variables or expressions used to compute the value(s) of the black-box. The scope is computed automatically from the arguments of the black-box function.

This member function removes expression x from the scope of the invoking black-box expression if it was contained in the scope.


remove

public void remove(IloIntExpr x)

The scope of a black-box expression is the set of variables or expressions used to compute the value(s) of the black-box. The scope is computed automatically from the arguments of the black-box function.

This member function removes expression x from the scope of the invoking black-box expression if it was contained in the scope.


remove

public void remove(IloIntVar x)

The scope of a black-box expression is the set of variables or expressions used to compute the value(s) of the black-box. The scope is computed automatically from the arguments of the black-box function.

This member function removes variable x from the scope of the invoking black-box expression if it was contained in the scope.