From 77cd5871a2ce6832f70447848d36a12e86e4ee86 Mon Sep 17 00:00:00 2001 From: Alinson S Xavier Date: Tue, 6 Oct 2020 14:26:26 -0500 Subject: [PATCH] Only use heuristic in multi-period instances --- src/model.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model.jl b/src/model.jl index 0ea5366..3b54eaf 100644 --- a/src/model.jl +++ b/src/model.jl @@ -259,7 +259,7 @@ function solve(filename::AbstractString; ) @info "Reading $filename..." instance = RELOG.parsefile(filename) - if heuristic + if heuristic && instance.time > 1 @info "Solving single-period version..." compressed = _compress(instance) csol = solve(compressed;