From 11ce9cdc6d7bc0cbbdd37a81e9de158b64c666de Mon Sep 17 00:00:00 2001 From: Joaquim Dias Garcia Date: Tue, 1 Mar 2022 23:03:41 -0300 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3adaa9b..a8324e5 100644 --- a/README.md +++ b/README.md @@ -44,17 +44,17 @@ Therefore, the new model can be: # x, y <= 10 ``` -### JuMP with Cbc solver +### JuMP with HiGHS solver ```julia using JuMP using MathOptInterface using QuadraticToBinary -using Cbc +using HiGHS model = Model( ()->QuadraticToBinary.Optimizer{Float64}( - MOI.instantiate(Cbc.Optimizer, with_bridge_type = Float64))) + MOI.instantiate(HiGHS.Optimizer, with_bridge_type = Float64))) @variable(model, 1 <= x <= 10) @variable(model, 1 <= y <= 10) @@ -147,8 +147,8 @@ might need to modify solver options accordingly. In the case of HiGHS: ```julia tol = 1e-9 -MOI.set(highs_high_tol, MOI.RawOptimizerAttribute("mip_feasibility_tolerance"), tol) -MOI.set(highs_high_tol, MOI.RawOptimizerAttribute("primal_feasibility_tolerance"), tol) +MOI.set(model, MOI.RawOptimizerAttribute("mip_feasibility_tolerance"), tol) +MOI.set(model, MOI.RawOptimizerAttribute("primal_feasibility_tolerance"), tol) ``` ### Bounds