2

In many application we need optimization. Usually data on which optimization is required in database or text files. Is there any python parser/utility that reads translate python data structures into AMPL data file so that we can run optimization?

A_Basit
  • 21
  • 2

1 Answers1

2

You could try an ad-hoc solution if you only need to convert Python data structures to AMPL data. Try, for example, Jinja2 to define the specific AMPL format you need.

In the event that you need to convert AMPL data to Python structures, you should try Amply.

Another approach could be to write your model in Python and run the solver from Python too, without the need to use AMPL. In this case, you should try Pyomo or PuLP.

pareyesv
  • 590
  • 5
  • 11