EnergySystemsModellingLab / EnergySystemsModellingLab/MUSE2

Add modular interface so user can choose solvers other than HiGHS

Open
#447 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
8
Forks
5
Avg merge
1d 2m
Merged PRs (30d)
37

Description

Currently users can only use the HiGHS solver, though it might be convenient to be able to have the option to use other solvers such as CPLEX, either to compare the results obtained with the HiGHS solver or because of performance reasons.

To do this, we'd need to add some traits to abstract away the necessary bits of functionality. Off the top of my head, the ones I can think of are:

- Add columns (variables) to the problem
- Add rows (constraints) to the problem
- Solve the problem
- Get the objective value from the solution (#428)
- Read columns from the solution
- Read dual (row) values from the solution

There is a crate which provides an abstraction over different solvers (`good_lp`) but it doesn't provide the right abstraction for us. In any case, writing the abstractions ourselves won't be particularly painful.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.