From 21da16fff629908a7888d3509a63252872f54c82 Mon Sep 17 00:00:00 2001 From: odow Date: Wed, 6 Nov 2024 14:45:05 +1300 Subject: [PATCH] Add more methods to compile_workload --- src/HiGHS.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/HiGHS.jl b/src/HiGHS.jl index c86396a..1770ede 100644 --- a/src/HiGHS.jl +++ b/src/HiGHS.jl @@ -47,6 +47,11 @@ PrecompileTools.@setup_workload begin MOI.add_constraint(model, x[1], MOI.GreaterThan(0.0)) MOI.add_constraint(model, x[2], MOI.LessThan(0.0)) MOI.add_constraint(model, x[3], MOI.EqualTo(0.0)) + MOI.add_constrained_variable(model, MOI.GreaterThan(0.0)) + MOI.add_constrained_variable(model, MOI.LessThan(0.0)) + MOI.add_constrained_variable(model, MOI.EqualTo(0.0)) + MOI.add_constrained_variable(model, MOI.Integer()) + MOI.add_constrained_variable(model, MOI.ZeroOne()) f = 1.0 * x[1] + x[2] + x[3] c1 = MOI.add_constraint(model, f, MOI.GreaterThan(0.0)) MOI.set(model, MOI.ConstraintName(), c1, "c1")