linopy icon indicating copy to clipboard operation
linopy copied to clipboard

Linear optimization with N-D labeled arrays in Python

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

Closes #450 ## Previous logic For `as_data_array` when `coords` is provided: - If array is constant, broadcast to coords - If array is pandas or xarray, ignore coords and use...

Closes #513 ## Changes proposed in this Pull Request Add `LinearExpression.from_constant` ## Checklist - [X] Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be...

## Changes proposed in this Pull Request Add support for GPU-accelerated solver [cuPDLPx](https://github.com/MIT-Lu-Lab/cuPDLPx) Note: due to the lower numerical precision of this solver, some of the equality assertions in the...

### Version Checks (indicate both or one) - [x] I have confirmed this bug exists on the lastest [release](https://github.com/pypsa/linopy/releases) of Linopy. - [ ] I have confirmed this bug exists...

bug

## cuOpt solver Dear linopy team, I was wondering if you have any plans to support NVIDIA's [cuOpt](https://github.com/NVIDIA/cuopt) open source solver in linopy? It seems promising for accelerating large-scale LPs...

updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.2 → v0.13.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.2...v0.13.3) - [github.com/keewis/blackdoc: v0.4.1 → v0.4.3](https://github.com/keewis/blackdoc/compare/v0.4.1...v0.4.3)

Is there an easy way to create a linear expression with a constant? It would be nice to be able to have a simple method that allows you to pass...

I would appreciate an easy way to not only set the log file for a solver to write into, but also to deactivate the stdout print during a solve process....

I get the following output when optimizing my Linopy model with gurobipy: ``` Warning: unknown variable 'x855057' in binary section Warning: unknown variable 'x855058' in binary section Warning: unknown variable...

Closes #437 (if applicable). ## Changes proposed in this Pull Request ### Add Special Ordered Sets (SOS) Constraints Support I added SOS1/2 constraints as an extension of variables. ie. in...