Skip to content

Commit 3b726df

Browse files
authored
MOI v1 and Julia v1.6 (#9)
* MOI v1 and Julia v1.6 * MA v1 * Update CI Julia v1.0 -> v1.6 * Remove SingleVariable
1 parent 307b681 commit 3b726df

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- version: '1.0'
15+
- version: '1.6'
1616
os: ubuntu-latest
1717
arch: x64
1818
- version: '1'

Project.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
99
MutableArithmetics = "d8a4904e-b15c-11e9-3269-09a3773c0cb0"
1010

1111
[compat]
12-
MathOptInterface = "0.10"
13-
MutableArithmetics = "0.3"
14-
julia = "1"
12+
MathOptInterface = "1"
13+
MutableArithmetics = "1"
14+
julia = "1.6"
1515

1616
[extras]
1717
CSDP = "0a46da34-8e4b-519e-b418-48813639ff34"

test/runtests.jl

+2-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ function projection_test(optimizer, config)
3434
x11 = x[1:3]
3535
x12 = x[4]
3636
t = MOI.add_variable(optimizer)
37-
ft = MOI.SingleVariable(t)
38-
MOI.add_constraint(optimizer, MOI.Utilities.operate(vcat, Float64, ft, x[1] - 1.0, 2 * (x[2] + 1.0), x[3] + 1.0, 2 * (x[4] - 1.0)),
37+
MOI.add_constraint(optimizer, MOI.Utilities.operate(vcat, Float64, t, x[1] - 1.0, 2 * (x[2] + 1.0), x[3] + 1.0, 2 * (x[4] - 1.0)),
3938
MOI.SecondOrderCone(5))
4039
MOI.set(optimizer, MOI.ObjectiveSense(), MOI.MIN_SENSE)
41-
MOI.set(optimizer, MOI.ObjectiveFunction{typeof(ft)}(), ft)
40+
MOI.set(optimizer, MOI.ObjectiveFunction{typeof(t)}(), t)
4241
MOI.optimize!(optimizer)
4342
primal = [(1 + 3) / 2, -1/2, (-1 + 3)/2, 1/2]
4443
dual = [(3 - 3) / 6, 0.2886751198, (3 + 3) / 6, -0.2886751197]

0 commit comments

Comments
 (0)