Error in formulating piecewise linear constraints with two subsets

Skip to first unread message

Aug 24, 2023, 5:18:28 AMAug 24
to Pyomo Forum
Dear All,

 I am currently dealing with facility location - allocation problem for and thus, formulating a piecewise linear constraints using two subsets, node and vehicles. Below is my code:

Screenshot 2023-08-24 155356.jpg

Screenshot 2023-08-24 155952.jpg

However, it resulted in the following error:
Screenshot 2023-08-24 160113.jpg

I have tried to look around in the web and also tried to tweak the code, but it seems will not work well. Does anybody have any ideas why this happenned?

Thank you in advance
Reply all
Reply to author
0 new messages