solve: Allow custom graph

This commit is contained in:
2023-07-27 10:38:36 -05:00
parent 5693ef2aa2
commit 9e0f8c5796

View File

@@ -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..."