PyPSA / linopy

Linear optimization with N-D labeled arrays in Python
https://linopy.readthedocs.io
MIT License
154 stars 42 forks source link

expression: add solution attribute to expression class #249

Closed FabianHofmann closed 4 months ago

FabianHofmann commented 4 months ago

closes #230

Change

The LinearExpression and QuadraticExpression class have a new attribute solution which returns the optimal values of the expression if the underlying model was optimized.