While iteratively correcting my code in OPL I have lost track of changes in my Mathematical program and it is difficult to edit my model in LaTeX without making mistakes in the indices somewhere. Is it possible to directly convert a OPL code to a mathematical optimization problem?
This question is marked "community wiki".
asked
savvy |

When you say "directly" do you mean via a program or script (i.e., "automatically" rather than "manually")?

Yes. A script or a program if any already exists. I found this (https://www.or-exchange.org/questions/6167/tool-to-convert-a-gamsoplampl-models-to-mathematical-formulation-for-latex) which is the reverse, from LaTeX to OPL code. They have pointed out some problems with that. My question is from OPL to something like LaTeX automatically.