Error in formulating piecewise linear constraints with two subsets

22 views
Skip to first unread message

r.ilma...@gmail.com

unread,
Aug 24, 2023, 5:18:28 AM8/24/23
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
Forward
0 new messages