CI: use scip and highs as solvers for clustering and solving, instead of ipopt and glpk

This commit is contained in:
Fabian 2024-01-31 09:44:13 +01:00
parent 9c558a3e46
commit b7750d21ea
7 changed files with 14 additions and 18 deletions

View File

@ -46,16 +46,6 @@ jobs:
run: | run: |
echo -ne "url: ${CDSAPI_URL}\nkey: ${CDSAPI_TOKEN}\n" > ~/.cdsapirc echo -ne "url: ${CDSAPI_URL}\nkey: ${CDSAPI_TOKEN}\n" > ~/.cdsapirc
- name: Add solver to environment
run: |
echo -e "- glpk\n- ipopt<3.13.3" >> envs/environment.yaml
if: ${{ matrix.os }} == 'windows-latest'
- name: Add solver to environment
run: |
echo -e "- glpk\n- ipopt" >> envs/environment.yaml
if: ${{ matrix.os }} != 'windows-latest'
- name: Setup micromamba - name: Setup micromamba
uses: mamba-org/setup-micromamba@v1 uses: mamba-org/setup-micromamba@v1
with: with:

View File

@ -69,8 +69,8 @@ lines:
solving: solving:
solver: solver:
name: glpk name: highs
options: "glpk-default" options: "highs-default"
plotting: plotting:

View File

@ -73,8 +73,8 @@ industry:
solving: solving:
solver: solver:
name: glpk name: highs
options: glpk-default options: highs-default
mem: 4000 mem: 4000
plotting: plotting:

View File

@ -65,8 +65,8 @@ sector:
solving: solving:
solver: solver:
name: glpk name: highs
options: glpk-default options: highs-default
mem: 4000 mem: 4000
plotting: plotting:

View File

@ -75,8 +75,8 @@ industry:
solving: solving:
solver: solver:
name: glpk name: highs
options: glpk-default options: highs-default
mem: 4000 mem: 4000
plotting: plotting:

View File

@ -62,6 +62,11 @@ Upcoming Release
* To determine the optimal topology to meet the number of clusters, the workflow used pyomo in combination with ``ipopt`` or ``gurobi``. This dependency has been replaced by using ``linopy`` in combination with ``scipopt`` or ``gurobi``. The environment file has been updated accordingly. * To determine the optimal topology to meet the number of clusters, the workflow used pyomo in combination with ``ipopt`` or ``gurobi``. This dependency has been replaced by using ``linopy`` in combination with ``scipopt`` or ``gurobi``. The environment file has been updated accordingly.
* The ``highs`` solver was added to the default environment file.
* The default solver for testing the workflow in the CI has been changed from ``glpk`` to ``highs``.
PyPSA-Eur 0.9.0 (5th January 2024) PyPSA-Eur 0.9.0 (5th January 2024)
================================== ==================================

View File

@ -59,3 +59,4 @@ dependencies:
- pip: - pip:
- tsam>=2.3.1 - tsam>=2.3.1
- highspy