Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for MOI.VariableName and MOI.ConstraintName #102

Closed
odow opened this issue Feb 24, 2024 · 0 comments · Fixed by #104
Closed

Add support for MOI.VariableName and MOI.ConstraintName #102

odow opened this issue Feb 24, 2024 · 0 comments · Fixed by #104

Comments

@odow
Copy link
Collaborator

odow commented Feb 24, 2024

Names from MOI do not make it to PATH. This makes printing and messages hard to read.

x-ref https://discourse.julialang.org/t/can-i-recover-variable-names-to-path-labels-jump-moi-pathsolver-path-jump/110703

The C API has

PATHSolver.jl/src/C_API.jl

Lines 742 to 743 in f03d0a7

variable_names::Vector{String} = String[],
constraint_names::Vector{String} = String[],

But we do not pass from MOI:

status, x, info = solve_mcp(
F,
J,
lower,
upper,
initial;
nnz = nnz,
silent = model.ext[:silent],
jacobian_structure_constant = true,
jacobian_data_contiguous = true,
[k => v for (k, v) in model.ext[:kwargs]]...,
)

cc @EliLazarus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant