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

Revert "Try to recover if we need dual solutions (#531)" #546

Merged
merged 1 commit into from
Dec 18, 2022

Conversation

odow
Copy link
Owner

@odow odow commented Dec 18, 2022

This reverts commit 2eb30fe.

@bfpc I'm reverting #531 because it doesn't account for cases with integer variables (so no dual solution will be present).

The place to fix it is probably here:

function get_dual_solution(node::Node, ::ContinuousConicDuality)
if JuMP.dual_status(node.subproblem) != JuMP.MOI.FEASIBLE_POINT
write_subproblem_to_file(
node,
"subproblem.mof.json",
throw_error = true,
)
end

but that can be a separate PR.

@odow odow merged commit e501feb into master Dec 18, 2022
@odow odow deleted the od/numerical-recovery branch December 18, 2022 01:24
@bfpc
Copy link
Contributor

bfpc commented Dec 19, 2022

@bfpc I'm reverting #531 because it doesn't account for cases with integer variables (so no dual solution will be present).

The place to fix it is probably here:

function get_dual_solution(node::Node, ::ContinuousConicDuality)
if JuMP.dual_status(node.subproblem) != JuMP.MOI.FEASIBLE_POINT
write_subproblem_to_file(
node,
"subproblem.mof.json",
throw_error = true,
)
end

I had thought about that, but I thought it might result in inconsistencies, since the primal solution found might not correspond to the dual solution if the latter gets recalculated. Maybe the pair (state, state_objective) never gets used at the same time as (objective, dual_values), but this is hard to formally impose.

Maybe one solution is to update the needs_duals to specialize to the ConicDuality (which does not re-solve the problem). What do you think?

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 this pull request may close these issues.

2 participants