1- #= ====================================#
1+
2+ # MIP solvers (commercial, but fast) #
3+ #= ====================================# #= ====================================#
4+
25# MIP solvers (commercial, but fast) #
3- #= =================================== =#
6+
47function get_gurobi (; solver_log = true , time_limit = 1E5 )
58 GRB_ENV = Gurobi. Env ()
69 return optimizer_with_attributes (
@@ -24,10 +27,6 @@ function get_cplex(; solver_log = true)
2427 )
2528end
2629
27- #= =====================================#
28- # MIP solvers (open-source, but slow) #
29- #= =====================================#
30-
3130function get_glpk (; solver_log = true )
3231 return JuMP. optimizer_with_attributes (GLPK. Optimizer, MOI. Silent () => ! solver_log)
3332end
@@ -41,9 +40,7 @@ function get_highs()
4140 )
4241end
4342
44- #= =======================================================#
4543# Continuous nonlinear programming solver (open-source) #
46- #= =======================================================#
4744
4845function get_ipopt (; solver_log = true )
4946 return JuMP. optimizer_with_attributes (
@@ -54,9 +51,8 @@ function get_ipopt(; solver_log = true)
5451 )
5552end
5653
57- #= ================================================================#
5854# Local mixed-integer nonlinear programming solver (open-source) #
59- #= =============================================================== =#
55+
6056function get_juniper ()
6157 return JuMP. optimizer_with_attributes (
6258 Juniper. Optimizer,
0 commit comments