linopy icon indicating copy to clipboard operation
linopy copied to clipboard

Linear optimization with N-D labeled arrays in Python

Results 47 linopy issues
Sort by recently updated
recently updated
newest added

Hi, I was looking into memory consumption a little, and it seems that that passing an LP to the solver (Gurobi in this case) using the .mps format has a...

Docstring of `Model.solve` defines return type as `Model`: https://github.com/PyPSA/linopy/blob/ecbc96266e3195b756fa528ff2faa4afe9243743/linopy/model.py#L996-L999 But a tuple of status and termination condition is returned in line 1085 and line 1111: https://github.com/PyPSA/linopy/blob/ecbc96266e3195b756fa528ff2faa4afe9243743/linopy/model.py#L1085 https://github.com/PyPSA/linopy/blob/ecbc96266e3195b756fa528ff2faa4afe9243743/linopy/model.py#L1111

Based on the discussion in #256, I started using `.loc[indices]` in arithmetic expressions and observed some inconsistencies (or I still do not understand the behaviour to 100% ^^) Following setup:...

Hi, I'm currently stuck trying to archive the following rather specific problem in linopy: ``` import linopy m = linopy.Model() # 2 days, hourly (48 hours) t = list(range(1,49)) n...

I have come across a case where linopy does not adhere to the naming of xarray and this problem can only be solved with an unnecessary type check. Here is...

1. if the problem need to convert multi-objectives to singe-objective, it's necessary to make normalization involving some constant variables. It's not conveniet to construct objective containing constant, such as x+1...

According to the source code, only one objective can be added to a model. Instead of converting to single objective, how to optimize multi-objective problems? > if not overwrite: assert...

In some cases, when solving a certain MIP problem, the solver may become slow. If the solver is called through an API request, it is not possible to directly stop...

Lets make a generic topic where we will get informed and discuss ideas about Linopy. First would like to know what is the vision of linopy from it's author and...

discussion