Skip to content

Issue with Offgridders Setup: Solver (cbc) Returned Non-Zero Return Code (1) #175

@IlariaDelF

Description

@IlariaDelF

Hello Offgridders Team,
I'm currently setting up and running simulations with Offgridders, but I've encountered an issue related to the CBC solver. The solver returns a non-zero return code (1) with the error message:

ERROR: Solver (cbc) returned non-zero return code (1)
ERROR: Solver log:
Error: cbc 2.10.10: invalid option '-ratioGap'

The simulation initiates but fails when the CBC solver is called, with the error message mentioned above.

System Details:
Operating System: Windows 10
Offgridders Version: I'm not able to see it from the Offgridders.py or setup.py
Python Version: 3.6 (via Miniconda) (But I also tried with Python 3.7 and got the same error)
Environment: Created using pip in a Conda virtual environment
Installed Packages:
ampl-module-base==20240606
ampl-module-cbc==20240529
amplpy==0.14.0
ampltools==0.7.5
appdirs==1.4.4
blinker==1.5
certifi==2021.5.30
charset-normalizer==2.0.12
cycler==0.11.0
decorator==4.4.2
dill==0.3.4
future @ file:///D:/bld/future_1610147365175/work
idna==3.7
kiwisolver==1.3.1
matplotlib==3.0.0
networkx==2.5.1
nose==1.3.7
numpy==1.19.5
oemof.network==0.4.0rc0
oemof.solph==0.4.1
oemof.tools==0.4.0
Offgridders @ file:///C:/Users/Ilaria/offgridders
pandas==0.23.4
ply==3.11
Pyomo==5.7
pyparsing==3.1.2
python-dateutil==2.9.0.post0
pytz==2024.1
PyUtilib==6.0.0
requests==2.27.1
scipy==1.4.1
six==1.16.0
urllib3==1.26.19
wincertstore==0.2
xlrd==1.2.0
XlsxWriter==1.2.7

I noticed that the issue arises from an invalid option -ratioGap being passed to the CBC solver. I'm not sure where this option is being set within the code.

I would appreciate any guidance on how to resolve this issue. Also, if there's any additional information you need, please let me know.

Thank you in advance for your help!

Metadata

Metadata

Assignees

Labels

dependenciesPull requests that update a dependency file

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions