LocalSolver logo
is now
Hexaly logo

We're excited to share that we are moving forward. We're leaving behind the LocalSolver brand and transitioning to our new identity: Hexaly. This represents a leap forward in our mission to enable every organization to make better decisions faster when faced with operational and strategic challenges.

This page is for an old version of Hexaly Optimizer. We recommend that you update your version and read the documentation for the latest stable release.

LSBBSolution Class

class localsolverblackbox::LSBBSolution

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:LSSolutionStatus

Summary

Functions
getIntValue Returns the value of the given expression in this solution.
getDoubleValue Returns the value of the given expression in this solution.

Functions

lsint getIntValue(const LSBBExpression expr)

Returns the value of the given expression in this solution.

Only allowed in states S_Paused or S_Stopped. Only allowed if this expression is an integer or a boolean.

See:LSBBExpression::isInt()
See:LSBBExpression::isBool()
Return:Value of the expression in this solution.
Parameters:expr - Expression.

lsdouble getDoubleValue(const LSBBExpression expr)

Returns the value of the given expression in this solution.

Only allowed in states S_Paused or S_Stopped. Only allowed if this expression is a double.

See:LSBBExpression::isDouble()
Return:Value of the expression in this solution.
Parameters:expr - Expression.