Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests not passing with MOI v0.9.7 #269

Closed
4 of 5 tasks
blegat opened this issue Nov 8, 2019 · 0 comments · Fixed by #353
Closed
4 of 5 tasks

Tests not passing with MOI v0.9.7 #269

blegat opened this issue Nov 8, 2019 · 0 comments · Fixed by #353

Comments

@blegat
Copy link
Member

blegat commented Nov 8, 2019

number_threads:

  Expression: MOI.supports(model, MOI.NumberOfThreads())
  ArgumentError: ModelLike of type Gurobi.Optimizer does not support accessing the attribute MathOptInterface.NumberOfThreads()

delete_soc_variables:

delete_soc_variables: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/variables.jl:164
  Expression: !(MOI.is_valid(model, cv))
Stacktrace:
 [1] delete_soc_variables(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/variables.jl:164
 [2] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [3] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [4] unittest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48
delete_soc_variables: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/variables.jl:167
  Expression: MOI.delete(model, v[1])
    Expected: MathOptInterface.DeleteNotAllowed
  No exception thrown
Stacktrace:
 [1] delete_soc_variables(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/variables.jl:167
 [2] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [3] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [4] unittest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48

solve_result_index

solve_result_index: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:155
  Expression: MOI.get(model, MOI.ObjectiveValue(result_index))
    Expected: MathOptInterface.ResultIndexBoundsError{MathOptInterface.ObjectiveValue}(MathOptInterface.ObjectiveValue(2), 1)
  No exception thrown
Stacktrace:
 [1] solve_result_index(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:155
 [2] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [3] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [4] unittest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48
solve_result_index: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:158
  Expression: MOI.get(model, MOI.DualObjectiveValue(result_index))
    Expected: MathOptInterface.ResultIndexBoundsError{MathOptInterface.DualObjectiveValue}(MathOptInterface.DualObjectiveValue(2), 1)
  No exception thrown
Stacktrace:
 [1] solve_result_index(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:158
 [2] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [3] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [4] unittest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48
solve_result_index: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:161
  Expression: MOI.get(model, MOI.PrimalStatus(result_index)) == MOI.NO_SOLUTION
   Evaluated: MathOptInterface.FEASIBLE_POINT == MathOptInterface.NO_SOLUTION
Stacktrace:
 [1] solve_result_index(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:161
 [2] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [3] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [4] unittest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48
solve_result_index: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:163
  Expression: MOI.get(model, MOI.VariablePrimal(result_index), x)
    Expected: MathOptInterface.ResultIndexBoundsError{MathOptInterface.VariablePrimal}(MathOptInterface.VariablePrimal(2), 1)
  No exception thrown
Stacktrace:
 [1] solve_result_index(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:163
 [2] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [3] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [4] unittest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48
solve_result_index: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:165
  Expression: MOI.get(model, MOI.ConstraintPrimal(result_index), c)
    Expected: MathOptInterface.ResultIndexBoundsError{MathOptInterface.ConstraintPrimal}(MathOptInterface.ConstraintPrimal(2), 1)
  No exception thrown
Stacktrace:
 [1] solve_result_index(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:165
 [2] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [3] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [4] unittest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48
solve_result_index: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:168
  Expression: MOI.get(model, MOI.DualStatus(result_index)) == MOI.NO_SOLUTION
   Evaluated: MathOptInterface.FEASIBLE_POINT == MathOptInterface.NO_SOLUTION
Stacktrace:
 [1] solve_result_index(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:168
 [2] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [3] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [4] unittest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48
solve_result_index: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:170
  Expression: MOI.get(model, MOI.ConstraintDual(result_index), c)
    Expected: MathOptInterface.ResultIndexBoundsError{MathOptInterface.ConstraintDual}(MathOptInterface.ConstraintDual(2), 1)
  No exception thrown
Stacktrace:
 [1] solve_result_index(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/UnitTests/solve.jl:170
 [2] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [3] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [4] unittest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48

rotatedsoc3:

rotatedsoc3: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/contconic.jl:1100
  Expression: ≈(MOI.get(model, MOI.VariablePrimal(), x), [1.0; zeros(n - 1)], atol=atol, rtol=rtol)
   Evaluated: [0.9999985755288247, 0.0010165427658945319] ≈ [1.0, 0.0] (atol=0.001, rtol=1.0e-8)
Stacktrace:
 [1] #rotatedsoc3test#9(::Int64, ::Float64, ::typeof(MathOptInterface.Test.rotatedsoc3test), ::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/contconic.jl:1100
 [2] rotatedsoc3test(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/contconic.jl:1031
 [3] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [4] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [5] rsoctest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48
rotatedsoc3: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/contconic.jl:1105
  Expression: ≈(MOI.get(model, MOI.ConstraintPrimal(), cx), [1.0; zeros(n - 1)], atol=atol, rtol=rtol)
   Evaluated: [0.9999985755288247, 0.0010165427658945319] ≈ [1.0, 0.0] (atol=0.001, rtol=1.0e-8)
Stacktrace:
 [1] #rotatedsoc3test#9(::Int64, ::Float64, ::typeof(MathOptInterface.Test.rotatedsoc3test), ::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/contconic.jl:1105
 [2] rotatedsoc3test(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/contconic.jl:1031
 [3] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [4] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [5] rsoctest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48
rotatedsoc3: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/contconic.jl:1111
  Expression: ≈(MOI.get(model, MOI.ConstraintPrimal(), c1), [1 / √2; 1 / √2; 1.0; zeros(n - 1)], atol=atol, rtol=rtol)
   Evaluated: [0.7071067811828314, 0.7071067811828314, 0.9999985755288247, 0.0010165427658945319] ≈ [0.7071067811865475, 0.7071067811865475, 1.0, 0.0] (atol=0.001, rtol=1.0e-8)
Stacktrace:
 [1] #rotatedsoc3test#9(::Int64, ::Float64, ::typeof(MathOptInterface.Test.rotatedsoc3test), ::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/contconic.jl:1111
 [2] rotatedsoc3test(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/contconic.jl:1031
 [3] macro expansion at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48 [inlined]
 [4] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 [inlined]
 [5] rsoctest(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/config.jl:48
indicator4: Test Failed at /home/blegat/.julia/packages/MathOptInterface/A2UPd/src/Test/intlinear.jl:625

indicator4:

  Expression: MOI.supports_constraint(model, MOI.VectorAffineFunction{Float64}, MOI.IndicatorSet{MOI.ACTIVATE_ON_ONE, MOI.LessThan{Float64}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant