Commit 03f3cc7
Refactoring of linopy solvers to object oriented architecture (#349)
* Refactor solvers.py to object-oriented implementation of Solvers which also changes the call of solvers in model.py
* Adjustments to execution via direct API for highs and gurobi solvers
* add unit tests for solver classes and solving from lp file and direct
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix of path_to_str type of Path
* fix of path_to_str type of Path back to before
* read sense and io_api from problem file
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* solve typing issues and move util methods to functions in solvers.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Changed architecture of direct execution and execution from problem file. Also renaming of Solver class solve method to 'solve_problem()'.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* get rid of unused type: ignore comment in solvers.py
* refactor #349
* fix bug in maybe_adjust_objective_function and adjust docstrings
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* pin coptpy version away from 7.2.1 due to bug
* add pytest for not direct solvers NotImplementedError
---------
Co-authored-by: daniel.rdt <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: lkstrp <[email protected]>1 parent 07be103 commit 03f3cc7
File tree
5 files changed
+1852
-996
lines changed- linopy
- test
5 files changed
+1852
-996
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
1015 | 1018 | | |
1016 | 1019 | | |
1017 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1018 | 1027 | | |
1019 | 1028 | | |
1020 | 1029 | | |
| |||
1075 | 1084 | | |
1076 | 1085 | | |
1077 | 1086 | | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1089 | 1090 | | |
1090 | 1091 | | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
1091 | 1113 | | |
1092 | 1114 | | |
1093 | 1115 | | |
| |||
0 commit comments