JuliaConstraints / CPLEXCP.jl

Julia interface for CPLEX CP Optimizer
MIT License
3 stars 1 forks source link

Remove support for ConstraintName of VariableIndex constraints #3

Closed dourouc05 closed 2 years ago

dourouc05 commented 2 years ago

According to https://jump.dev/MathOptInterface.jl/stable/release_notes/#Breaking-changes-in-MOI:

VariableIndex constraints should not support ConstraintName

I think this implies that https://github.com/dourouc05/CPLEXCP.jl/blob/master/src/MOI/wrapper.jl#L42-L48 should go away, along with all their related code (https://github.com/dourouc05/CPLEXCP.jl/blob/a05526dcb09b60347197857dfa1c86b637b32b3d/src/MOI/wrapper_constraints_names.jl#L1-L106, in a crude approximation).

@odow is my understanding right? If so, this could simplify this wrapper by quite a bit.

odow commented 2 years ago

Yes. We got rid of this because it over-complicated all of the wrappers.

dourouc05 commented 2 years ago

Thanks! Indeed, that's quite a simplification (136 lines deleted, only one code path for constraint names instead of a dozen).