Can I recover variable names to PATH labels? JuMP->MOI->PATHSolver->PATH->JuMP

I am passing named variable/constraints to JuMP. Is there a way to track the variable/constraint name linked to the row f[ #] which is what is reported by PATH (looks like unnamed rows as in this example without names)?

I am using the PATH solver, via what I believe is a codestack that goes something like JuMP->MOI->PATHSolver->PATH. The output from PATH includes "label"s with the largest error per iteration which are numbered by model row.

It seems like the transformation from name to # is happening somewhere along the stack because the PATH documentation shows named labels for a model defined more directly, and JuMP obviously knows the variable names and margin values in the solution…

Not sure right now how to provide a MRE from our metaprogramming structure, but with a @variable(model, jump_var) and an jump_ex expression, we set
@constraint(jm, jump_ex ⟂ jump_var)

Thanks and apologies for any misunderstandings in my question.

Is there a way to track the variable/constraint name linked to the row f[ #] which is what is reported by PATH

Not really. I’ve opened an issue:

1 Like

This is now supported in the latest release of PATHSolver.jl.

2 Likes