-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from jump-dev/jg/moi1
MOI 1.0 and JuMP 0.23
- Loading branch information
Showing
15 changed files
with
107 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,13 @@ | ||
name = "Dualization" | ||
uuid = "191a621a-6537-11e9-281d-650236a99e60" | ||
authors = ["guilhermebodin <[email protected]>"] | ||
version = "0.4.0" | ||
version = "0.5.0" | ||
|
||
[deps] | ||
JuMP = "4076af6c-e467-56ae-b986-b466b2749572" | ||
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee" | ||
|
||
[compat] | ||
JuMP = "0.22" | ||
MathOptInterface = "0.10" | ||
julia = "1" | ||
|
||
[extras] | ||
CSDP = "0a46da34-8e4b-519e-b418-48813639ff34" | ||
ECOS = "e2685f51-7e38-5353-a97d-a921fd2c8199" | ||
GLPK = "60bf3e95-4087-53dc-ae20-288a0d20c6a6" | ||
SCS = "c946c3f1-0d1f-5ce8-9dea-7daa1f7e2d13" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test", "GLPK", "ECOS", "CSDP", "SCS"] | ||
JuMP = "0.23" | ||
MathOptInterface = "1" | ||
julia = "1.6" |
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,12 @@ | ||
[deps] | ||
CSDP = "0a46da34-8e4b-519e-b418-48813639ff34" | ||
HiGHS = "87dc4568-4c63-4d18-b0c0-bb2238e4078b" | ||
JuMP = "4076af6c-e467-56ae-b986-b466b2749572" | ||
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee" | ||
SCS = "c946c3f1-0d1f-5ce8-9dea-7daa1f7e2d13" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[compat] | ||
CSDP = "1.0.0" | ||
HiGHS = "1.1.0" | ||
SCS = "1.0.1" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
using HiGHS | ||
const HiGHS_PRIMAL_FACTORY = | ||
MOI.OptimizerWithAttributes(HiGHS.Optimizer, MOI.Silent() => true) | ||
const HiGHS_DUAL_FACTORY = dual_optimizer(HiGHS_PRIMAL_FACTORY) | ||
const HiGHS_PRIMAL_OPT = MOI.instantiate(HiGHS_PRIMAL_FACTORY) | ||
const HiGHS_DUAL_OPT = MOI.instantiate(HiGHS_DUAL_FACTORY) | ||
|
||
push!(primal_linear_factory, HiGHS_PRIMAL_FACTORY) | ||
push!(dual_linear_factory, HiGHS_DUAL_FACTORY) | ||
push!(dual_linear_optimizer, HiGHS_DUAL_OPT) | ||
push!(primal_linear_optimizer, HiGHS_PRIMAL_OPT) | ||
|
||
@testset "HiGHS Linear Problems" begin | ||
list_of_linear_problems = [ | ||
lp1_test, | ||
lp2_test, | ||
lp3_test, | ||
lp4_test, | ||
lp5_test, | ||
lp6_test, | ||
lp7_test, | ||
# lp8_test, Int64 problem, does not work | ||
# lp9_test, Interval is not implemented | ||
lp10_test, | ||
# lp11_test, Feasibility not supported | ||
lp12_test, | ||
lp13_test, | ||
] | ||
test_strong_duality(list_of_linear_problems, HiGHS_PRIMAL_FACTORY) | ||
end | ||
|
||
@testset "HiGHS Quadratic Problems" begin | ||
list_of_quad_problems = [qp1_test, qp2_test] | ||
test_strong_duality(list_of_quad_problems, HiGHS_PRIMAL_FACTORY) | ||
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
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
5cd58bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register()
5cd58bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/55833
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: