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

Examples are failing CI #2033

Closed
mlubin opened this issue Aug 19, 2019 · 3 comments
Closed

Examples are failing CI #2033

mlubin opened this issue Aug 19, 2019 · 3 comments
Milestone

Comments

@mlubin
Copy link
Member

mlubin commented Aug 19, 2019

https://travis-ci.org/JuliaOpt/JuMP.jl/jobs/573462747#L351

  LoadError: MethodError: MathOptInterface.Utilities.load_constraint(::SCS.Optimizer, ::MathOptInterface.ConstraintIndex{MathOptInterface.VectorOfVariables,MathOptInterface.PositiveSemidefiniteConeTriangle}, ::MathOptInterface.VectorOfVariables, ::MathOptInterface.PositiveSemidefiniteConeTriangle) is ambiguous. Candidates:
    load_constraint(optimizer::SCS.Optimizer, ci, f::MathOptInterface.VectorOfVariables, s) in SCS at /home/travis/.julia/packages/SCS/L1XbN/src/MOI_wrapper.jl:230
    load_constraint(model::MathOptInterface.ModelLike, ::MathOptInterface.ConstraintIndex, func::MathOptInterface.AbstractFunction, set::MathOptInterface.AbstractSet) in MathOptInterface.Utilities at /home/travis/.julia/packages/MathOptInterface/mvlGI/src/Utilities/copy.jl:592
  Possible fix, define
    load_constraint(::SCS.Optimizer, ::MathOptInterface.ConstraintIndex, ::MathOptInterface.VectorOfVariables, ::MathOptInterface.AbstractSet)
  Stacktrace:
   [1] load_constrained_variables(::SCS.Optimizer, ::Array{MathOptInterface.VariableIndex,1}, ::MathOptInterface.ConstraintIndex{MathOptInterface.VectorOfVariables,MathOptInterface.PositiveSemidefiniteConeTriangle}, ::MathOptInterface.PositiveSemidefiniteConeTriangle) at /home/travis/.julia/packages/MathOptInterface/mvlGI/src/Utilities/copy.jl:463
   [2] load_vector_of_variables(::SCS.Optimizer, ::MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}, ::MathOptInterface.Utilities.IndexMap, ::Array{MathOptInterface.ConstraintIndex{MathOptInterface.VectorOfVariables,MathOptInterface.PositiveSemidefiniteConeTriangle},1}) at /home/travis/.julia/packages/MathOptInterface/mvlGI/src/Utilities/copy.jl:581
   [3] allocate_load(::SCS.Optimizer, ::MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}, ::Bool) at /home/travis/.julia/packages/MathOptInterface/mvlGI/src/Utilities/copy.jl:676
   [4] #automatic_copy_to#89 at /home/travis/.julia/packages/MathOptInterface/mvlGI/src/Utilities/copy.jl:17 [inlined]
   [5] #automatic_copy_to at ./none:0 [inlined]
   [6] #copy_to#27 at /home/travis/.julia/packages/SCS/L1XbN/src/MOI_wrapper.jl:95 [inlined]
   [7] #copy_to at ./none:0 [inlined]
   [8] attach_optimizer(::MathOptInterface.Utilities.CachingOptimizer{SCS.Optimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}) at /home/travis/.julia/packages/MathOptInterface/mvlGI/src/Utilities/cachingoptimizer.jl:138
   [9] optimize!(::MathOptInterface.Utilities.CachingOptimizer{SCS.Optimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}) at /home/travis/.julia/packages/MathOptInterface/mvlGI/src/Utilities/cachingoptimizer.jl:174
   [10] optimize!(::MathOptInterface.Bridges.LazyBridgeOptimizer{MathOptInterface.Utilities.CachingOptimizer{SCS.Optimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}}) at /home/travis/.julia/packages/MathOptInterface/mvlGI/src/Bridges/bridge_optimizer.jl:139
   [11] optimize!(::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}) at /home/travis/.julia/packages/MathOptInterface/mvlGI/src/Utilities/cachingoptimizer.jl:178
   [12] #optimize!#78(::Bool, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Model, ::Nothing) at /home/travis/.julia/packages/JuMP/LfUs7/src/optimizer_interface.jl:141
   [13] optimize! at /home/travis/.julia/packages/JuMP/LfUs7/src/optimizer_interface.jl:111 [inlined] (repeats 2 times)
   [14] #example_cluster#7(::Bool, ::Function) at /home/travis/build/JuliaOpt/JuMP.jl/examples/cluster.jl:47
   [15] (::getfield(Main, Symbol("#kw##example_cluster")))(::NamedTuple{(:verbose,),Tuple{Bool}}, ::typeof(example_cluster)) at ./none:0
   [16] top-level scope at none:0
   [17] include at ./boot.jl:317 [inlined]
   [18] include_relative(::Module, ::String) at ./loading.jl:1044
   [19] include(::Module, ::String) at ./sysimg.jl:29
   [20] include(::String) at ./client.jl:392
   [21] macro expansion at /home/travis/build/JuliaOpt/JuMP.jl/examples/run_examples.jl:21 [inlined]
   [22] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1156 [inlined]
   [23] macro expansion at /home/travis/build/JuliaOpt/JuMP.jl/examples/run_examples.jl:20 [inlined]
   [24] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
   [25] top-level scope at /home/travis/build/JuliaOpt/JuMP.jl/examples/run_examples.jl:20
   [26] include at ./boot.jl:317 [inlined]
   [27] include_relative(::Module, ::String) at ./loading.jl:1044
   [28] include(::Module, ::String) at ./sysimg.jl:29
   [29] exec_options(::Base.JLOptions) at ./client.jl:266
   [30] _start() at ./client.jl:425
  in expression starting at /home/travis/build/JuliaOpt/JuMP.jl/examples/cluster.jl:82
@mlubin mlubin added this to the 0.20 milestone Aug 19, 2019
@blegat
Copy link
Member

blegat commented Aug 20, 2019

SCS v0.6 needs to be tagged. SCS v0.5 was using REQUIRE so it seems the upper bound wasn't set correctly similarly to JuMP v0.19: JuliaRegistries/General#2684

@mlubin
Copy link
Member Author

mlubin commented Aug 22, 2019

@blegat is there anything blocking the SCS 0.6 release? Looks like the MOI 0.9 PR was merged.

@blegat
Copy link
Member

blegat commented Aug 23, 2019

SCS v0.6.0 is now released and jump-dev/MathOptInterface.jl#850 fixed the MLE example.

@blegat blegat closed this as completed Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants