From 3fa57e75e9e91eabf3b4336f74a37ee9affe958a Mon Sep 17 00:00:00 2001 From: Hector Perez Date: Thu, 16 Nov 2023 12:21:29 -0500 Subject: [PATCH] add default reformulation method: BigM() --- src/reformulate.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reformulate.jl b/src/reformulate.jl index 14d7018..a95de7a 100644 --- a/src/reformulate.jl +++ b/src/reformulate.jl @@ -2,12 +2,12 @@ # REFORMULATE ################################################################################ """ - reformulate_model(model::JuMP.Model, method::AbstractSolutionMethod) + reformulate_model(model::JuMP.Model, method::AbstractSolutionMethod = BigM()) Reformulate a `GDPModel` using the specified `method`. Prior to reformulation, all previous reformulation variables and constraints are deleted. """ -function reformulate_model(model::JuMP.Model, method::AbstractSolutionMethod) +function reformulate_model(model::JuMP.Model, method::AbstractSolutionMethod = BigM()) #clear all previous reformulations _clear_reformulations(model) #reformulate