linopy.expressions.LinearExpression.solution

linopy.expressions.LinearExpression.solution#

property LinearExpression.solution#

Get the optimal values of the expression.

The function raises an error in case no model is set as a reference or the model is not optimized.