Localsolver  6.0
localsolverblackbox.LSBBSolution Class Reference

Detailed Description

Solution to the optimization model.

A solution carries the values of all expressions in the model. It is used to retrieve the values of all expressions (getting the solution).

See Also
LSSolutionStatus

Public Member Functions

LocalSolverBlackBox GetLocalSolverBlackBox ()
 Returns the LocalSolverBlackbox object associated to this solution.
double GetDoubleValue (LSBBExpression expr)
 Returns the value of the given expression in this solution.
long GetIntValue (LSBBExpression expr)
 Returns the value of the given expression in this solution.

Member Function Documentation

LocalSolverBlackBox localsolverblackbox.LSBBSolution.GetLocalSolverBlackBox ( )

Returns the LocalSolverBlackbox object associated to this solution.

Returns
LocalSolverBlackbox object
double localsolverblackbox.LSBBSolution.GetDoubleValue ( LSBBExpression  expr)

Returns the value of the given expression in this solution.

Only allowed in states LSBBState::Paused or LSBBState::Stopped. Only allowed if this expression is a double.

Parameters
exprExpression.
Returns
Value of the expression in this solution.
long localsolverblackbox.LSBBSolution.GetIntValue ( LSBBExpression  expr)

Returns the value of the given expression in this solution.

Only allowed in states LSBBState::Paused or LSBBState::Stopped. Only allowed if this expression is an integer or a boolean.

Parameters
exprExpression.
Returns
Value of the expression in this solution.