Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <daniel.ruedt@campus.tu-berlin.de> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: lkstrp <lkstrp@pm.me>
- Loading branch information