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

Error when no solver provided #423

Merged
merged 3 commits into from
Dec 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/optimize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ function optimize!(prob::MathProg.Problem, annotations::Annotations, params::Par
return optstate
end

"""
Solve a reformulation
"""
function optimize!(
reform::MathProg.Reformulation, algorithm::Algorithm.AbstractOptimizationAlgorithm,
initial_primal_bound, initial_dual_bound
Expand Down Expand Up @@ -123,3 +120,16 @@ function optimize!(

return outstate
end

"""
Fallback if no solver provided by the user.
"""
function optimize!(
::MathProg.Reformulation, ::Nothing,
::Real, ::Real
)
error("""
No solver to optimize the reformulation. You should provide a solver through Coluna parameters.
Please, check the starting guide of Coluna.
""")
end