-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with numpy type handling in writers #2927
Comments
@AndreGismo could you try adding the option It's going to be really hard for us to debug this without a minimal stand-alone example that reproduces the error you're seeing. |
@blnicho thank you for the tip! I have added the option To be honest, I haven't ever seen before these lp files. But I managed to spot a difference between two lp files:
The main difference: the working lp file from the run with Can it be possible, that this causes the error? I couldn't find a way to attach the files, so I will just paste the contents (not everything, only till the first contraint causing the error occurs) The not working lp file: max s.t. c_l_min_voltage(0)_:
c_l_min_voltage(1)_:
the working lp file: max s.t. c_l_min_voltage(0)_:
c_l_min_voltage(1)_:
However, I still couldn't find a way to reproduce the error. As I understand the error, it stems from the constraint |
pyomo 6.6.1
Summary
I have updated from
pyomo 6.3.0
topyomo 6.6.1
and now I get an error when I try to run code. But the same code ran underpyomo 6.3.0
without errors. I useglpk 5.0
as solver. I use conda for creating virtual environments. I got the newpyomo
version from conda forge usingconda install -c conda-forge pyomo
.The error tells me something about a
missing right-hand side
. But I build my constraints as always, and underpyomo 6.3.0
everything was fine.Steps to reproduce the issue
I could not find a way to reproduce the error in a short minimal working example, sorry! :(
But here is the link to my respository with the code.
The executable script is
test_optimization.py
.One will also need the files
battery_electric_vehicle.py
,household.py
,optimization.py
EMO.py
to run the file
test_optimization.py
Other dependencies are mainly:
pandas
numpy
matplotlib
pandapower
scipy
Basically, a
ConcreteModel
is built and than the solver ('glpk'
) is called to solve the problem.Error Message
Information on your system
Pyomo version: 6.6.1
Python version: 3.9.17
Operating system: Microsoft Windows 10 Pro (10.0.19045 Build 19045)
How Pyomo was installed (PyPI, conda, source): conda
Solver (if applicable): glpk
Additional information
The optimization model is built in the file
optimization.py
, in the classGridLineOptimizer
in the method_setup_model
, starts in line 474.The text was updated successfully, but these errors were encountered: