linopy.variables.Variable.solution

linopy.variables.Variable.solution#

property Variable.solution#

Get the optimal values of the variable.

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