Editing RHS value within multiple solves in pyomo

Skip to first unread message

gül imamoğlu

Sep 28, 2023, 5:13:09 PM9/28/23
to Pyomo Forum

I am trying to switch Gams to pyomo so I'm unexperienced in pyomo. I have a basic model to demonstrate my problem. I want to change right hand side value of some constraints between repeated solves. I don't want to add new constraints because in this case, I going to need activate and deactivate constraints in loops. I tried to change model.A1 by assigning a new value but in constraint4 it keeps 0.

run gives

---1--- 20.0    8.0 

----1-2---- 15.0     11.0

but it should give

---1--- 20.0    8.0 

----1-2---- 20.0     10.0

Thanks in advance

Reply all
Reply to author
0 new messages