Identifying variables in GAMS.jl errors (how do I look up JuMP variables from auto-generated name x..)

I am sending a JuMP model to a GAMS solver using GAMS.jl and get an error/warning:
** Error in Square System: A variable tries to exceed its bound.

This is perfectly familiar and I get more information by looking in the generated moi.lst file
to find out which variable is the culprit:

**** ERRORS/WARNINGS IN VARIABLE x382
     1 error(s): The variable tries to exceed its bound.

Is there any way of identifying what “x382” refers to in the above?

I don’t know if the GAMS.jl authors follow discourse. I’d recommend opening an issue at https://github.com/GAMS-dev/gams.jl/issues. JuMP does provide the capability to pass variable names down to the solver.

2 Likes

Thanks for the suggestion, I have opened an issue here: https://github.com/GAMS-dev/gams.jl/issues/12

Thanks @miles.lubin for referring to the GAMS.jl repository. Indeed, I tend to miss things here. I’ll try to get better…