Dual variables issue

24 views
Skip to first unread message

juan raposo

unread,
Jun 21, 2023, 10:55:36 AMJun 21
to Pyomo Forum
Hi,

I'm currently developing some code requiring access to some dual variables regarding several constraints. However, when I do instance.pprint() in the suffix declaration nothing shows up as shown in one of the images.  At first, I thought it was because there was too much data to be shown, but when I try to write code to print the dual variables I always get a Key Error as shown in the image so I certified that the dual variables aren't uploaded. Could someone help me solve this issue? To better understand the question, I would share my GitHub repository where you can find my code (to find the errors you need to scroll way down to the end as there is a lot of stuff printed). Thanks in advance.

PLATFORM USED: Jupyter Notebook
CODE: MMP_PYOMO.ipynb
IMAGES:
SUFFIX DECLARATION WHEN PPRINT().png
KeyError.png
Reply all
Reply to author
Forward
0 new messages