-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1af6bf7
commit b058efb
Showing
21 changed files
with
1,048 additions
and
980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# MIP solver - commercial | ||
function get_gurobi() | ||
return optimizer_with_attributes(Gurobi.Optimizer, | ||
MOI.Silent() => true, | ||
"Presolve" => 1) | ||
end | ||
|
||
function get_cplex() | ||
return optimizer_with_attributes(CPLEX.Optimizer, | ||
MOI.Silent() => true, | ||
"CPX_PARAM_PREIND" => 1) | ||
end | ||
|
||
# MIP solver - open-source | ||
function get_cbc() | ||
return optimizer_with_attributes(Cbc.Optimizer, | ||
MOI.Silent() => true) | ||
end | ||
|
||
# Local solver | ||
function get_ipopt() | ||
return optimizer_with_attributes(Ipopt.Optimizer, | ||
MOI.Silent() => true, | ||
"sb" => "yes", | ||
"max_iter" => Int(1E4)) | ||
end | ||
|
||
# Convex MINLP solver | ||
function get_pavito(mip_solver, cont_solver) | ||
return optimizer_with_attributes(Pavito.Optimizer, | ||
MOI.Silent() => true, | ||
"mip_solver" => mip_solver, | ||
"cont_solver" => cont_solver, | ||
"mip_solver_drives" => false) | ||
end | ||
|
||
# Non-convex Local MINLP solver | ||
function get_juniper(mip_solver, nl_solver) | ||
return optimizer_with_attributes(Juniper.Optimizer, | ||
MOI.Silent() => true, | ||
"mip_solver" => mip_solver, | ||
"nl_solver" => nl_solver) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.