Skip to content

Commit

Permalink
Add more methods to compile_workload
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Nov 6, 2024
1 parent 80bfb5a commit 21da16f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/HiGHS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 21da16f

Please sign in to comment.