mirror of
https://github.com/ANL-CEEESA/RELOG.git
synced 2025-12-06 23:58:51 -06:00
Throw exception for infeasible models
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user