Is there any method to get a JuMP model in Latex format?

I use JuMP package from julia programming language for modelling optimization problems. To investigate the performance of the model I need to print some of the model constraints. I want to know is there any automatic way of receiving the model constraints in Latex format (for readibility reasons)?

Yes, this is already a feature of JuMP. The question is where and how do you want to read the output? Eg. as TeX-markup text, rendered in a notebook, etc.

You can use latex_formulation(model), but it prints the scalarized version, not a compat set representation. See Models · JuMP

1 Like

Is there any way of getting it in a pdf format?
Is there any way of getting specific constraints by calling their names?

Thank you for this response.

I use VS code and have to copy the output from VS code to overleaf then modify some stuff like changing the letter delta to \delta so overleaf can read it.
Is there any way of dealing with this?

I have an additional (silly) question, and I’m not sure if it’s feasible, but I wanted to check just in case. When generating LaTeX code for the model, is there a way to specify whether certain variables should appear on the right or left-hand side of the equation?

The answer to all is no. The LaTeX export is a very limited feature.