localsolverblackbox
public class LSBBModel extends java.lang.Object
LSBBExpression,
LSBBOperator| Modifier and Type | Method and Description |
|---|---|
void |
addObjective(LSBBExpression expr,
LSBBObjectiveDirection direction)
Sets the given expression to the current objective to optimize.
|
LSBBExpression |
boolVar()
Creates a boolean decision.
|
LSBBExpression |
call()
Creates a call expression.
|
void |
close()
Closes the model.
|
LSBBExpression |
createNativeFunction(LSBBNativeFunction func)
Creates a native function.
|
boolean |
equals(java.lang.Object obj) |
LSBBExpression |
floatVar(double min,
double max)
Creates a float decision.
|
LocalSolverBlackBox |
getLocalSolverBlackBox()
Returns the LocalSolverBlackBox object associated to this model.
|
int |
hashCode() |
LSBBExpression |
intVar(long min,
long max)
Creates an integer decision.
|
boolean |
isClosed()
Returns true if the model is closed, false otherwise.
|
java.lang.String |
toString() |
public LocalSolverBlackBox getLocalSolverBlackBox()
public LSBBExpression createNativeFunction(LSBBNativeFunction func)
LSBBOperator.Call. The first operand must be
your native function. The other operands must be LSBBExpressions. Their
value will be made accessible to your native function through the native
context.
Note 1: Most of the time your native function will be
called when the solver is in state LSBBState.Running. Do not
attempt to call any method of the solver (to retrieve statistics, values
of LSBBExpressions or whatever) in that state or an exception will be
thrown. The only accessible function is LocalSolverBlackBox.stop().
func - Native function to call.LSBBOperator.NativeFunctionpublic LSBBExpression call()
LSBBOperator.Callpublic LSBBExpression boolVar()
LSBBOperator.Boolpublic LSBBExpression floatVar(double min, double max)
LSBBOperator.Floatpublic LSBBExpression intVar(long min, long max)
LSBBOperator.Intpublic void addObjective(LSBBExpression expr, LSBBObjectiveDirection direction)
LSBBState.Modeling.expr - Expression of type LSBBOperator.Call.direction - Optimization direction of this objective.public void close()
LSBBState.Modeling. Once
the model is closed, no expression, constraints or objectives can be
added. The model must be closed before starting its resolution.public boolean isClosed()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object