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).

Summary

Methods
get_value Returns the value of the given expression in this solution.

Instance methods

LSBBSolution.get_value(expr)

Returns the value of the given expression in this solution. Only allowed in states LSState.PAUSED or LSState.STOPPED. The type of the returned value depends on the type of the LSBBExpression. It can be a boolean, an integer or a double.

Parameters:expr (LSBBExpression) – Expression
Returns:Value of the expression in this solution.
Return type:bool, int or double