mirror of
https://github.com/ANL-CEEESA/RELOG.git
synced 2025-12-06 07:48:50 -06:00
solve: Allow custom graph
This commit is contained in:
@@ -32,6 +32,7 @@ function solve(
|
|||||||
output = nothing,
|
output = nothing,
|
||||||
marginal_costs = true,
|
marginal_costs = true,
|
||||||
return_model = false,
|
return_model = false,
|
||||||
|
graph = nothing,
|
||||||
)
|
)
|
||||||
|
|
||||||
if lp_optimizer == nothing
|
if lp_optimizer == nothing
|
||||||
@@ -51,7 +52,9 @@ function solve(
|
|||||||
|
|
||||||
|
|
||||||
@info "Building graph..."
|
@info "Building graph..."
|
||||||
graph = RELOG.build_graph(instance)
|
if graph === nothing
|
||||||
|
graph = RELOG.build_graph(instance)
|
||||||
|
end
|
||||||
_print_graph_stats(instance, graph)
|
_print_graph_stats(instance, graph)
|
||||||
|
|
||||||
@info "Building optimization model..."
|
@info "Building optimization model..."
|
||||||
|
|||||||
Reference in New Issue
Block a user