Throw exception for infeasible models

This commit is contained in:
2021-03-05 10:36:37 -06:00
parent a8c7047e2d
commit 86cf7f5bd9
2 changed files with 2 additions and 3 deletions

View File

@@ -38,8 +38,7 @@ function solve(
JuMP.optimize!(model)
if !has_values(model)
@warn "No solution available"
return OrderedDict()
error("No solution available")
end
if marginal_costs