Skip to content
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

retrieving duals results in a Key error #1066

Closed
sriharid opened this issue Dec 7, 2023 · 0 comments · Fixed by #1068
Closed

retrieving duals results in a Key error #1066

sriharid opened this issue Dec 7, 2023 · 0 comments · Fixed by #1068

Comments

@sriharid
Copy link
Contributor

sriharid commented Dec 7, 2023

GridPath version: v0.16.0

Running the example scenario test_startup_shutdown_rates using CPLEX results in the following error. Is there a way to turn off extracting duals for integer variables?

CPLEX> Incumbent solution written to file 'C:\Users\Srihari\AppData\Local\Temp\tmp9572u782.cplex.sol'.
CPLEX> Saving results...
...solver termination condition: optimal.
...exporting CSV results
ERROR:root:"Component with id '2671559455552': GenCommitBin_Min_Down_Time_Constraint[Gas_CCGT,20200101]"
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\gp-0.16.0\lib\site-packages\pyomo\common\collections\component_map.py", line 68, in __getitem__
    return self._dict[id(obj)][1]
KeyError: 2671559455552

This error does not show up when using CBC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant