-
Notifications
You must be signed in to change notification settings - Fork 6
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
Naming of slack variables? #32
Comments
See #9 |
For the naming you can try this |
It doesn't seem to work as expected… Here,
In the LP file (or if I convert the MOI model into a JuMP model), I still get names like (By the way, could you make the first part of https://github.com/guilhermebodin/Dualization.jl/blob/master/test/optimize_abstract_models.jl#L5 a standalone function to get a JuMP model? Maybe both from a ModelLike and directly from a DualProblem?) |
Yes, that's in the plan, input a JuMP model and output a dualized JuMP model :) Could you share the script of this model so I can get more intuition on what is not working properly? |
I'm trying to reduce it (in order not to send you a few thousands lines of code 😛). |
I am dualising a model with nonnegative variables, so I expect to have dual constraints
>= 0
, but I have slack variables. I did not see a way of disabling these slack variables (or is there a reason they are used?).The "meat" of this issue: these slack variables have no real name, I see things like
_1
and_1_1
when exporting the dual model through MathOptFormat.jl (I suspect that the second name comes from renaming to ensure that all variables have distinct names without forbidden symbols when exporting to LP). Would it be possible to automatically name those slack variables? Likeslack_var1
for the dual constraint associated with the primal variablevar1
.The text was updated successfully, but these errors were encountered: