Skip to content
Advertisement

Tag: ampl

Switching to Pyomo – Syntax issue with sets

I have used the algebraic modelling language AMPL but I’m now making the switch to python and Pyomo. I’m struggling a bit with its syntax though. In AMPL I would have something like this: How can I implement the last line in Pyomo? Any help is much appreciated, thank you! Best regards, Johannes Answer Welcome to the site. Below is

Advertisement