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

ITERATION_LIMIT for linear15 #3

Open
blegat opened this issue Jun 5, 2019 · 0 comments
Open

ITERATION_LIMIT for linear15 #3

blegat opened this issue Jun 5, 2019 · 0 comments

Comments

@blegat
Copy link
Collaborator

blegat commented Jun 5, 2019

The test linear15:
https://github.com/JuliaOpt/MathOptInterface.jl/blob/cbc37a5b8f1f20371598cc84f617a4a461f9877a/src/Test/contlinear.jl#L1663-L1713
does not finish even after 20000 iterations. Given how simple the problem is, it is probably a bug with a limit case in CDCS.
To reproduce the failue:

import CDCS; optimizer = CDCS.Optimizer(verbose=0, maxIter=20000);
using MathOptInterface
const MOI = MathOptInterface
const MOIU = MOI.Utilities
MOIU.@model(ModelData, (), (),
              (MOI.Zeros, MOI.Nonnegatives, MOI.SecondOrderCone,
               MOI.RotatedSecondOrderCone, MOI.PositiveSemidefiniteConeTriangle),
              (), (), (), (MOI.VectorOfVariables,), (MOI.VectorAffineFunction,));
const cached = MOIU.CachingOptimizer(ModelData{Float64}(), optimizer);
const bridged = MOI.Bridges.full_bridge_optimizer(cached, Float64);
config = MOI.Test.TestConfig(atol=3e-2, rtol=3e-2)

MOI.Test.linear15test(bridged, config)

# output

>> Warning: CDCS reached the maximum number of iterations, and will not attempt
to complete the positive semidefinite variable. Your output will most
likely contain NaNs! 
> In cdcs_hsde.setOutputs (line 58)
  In cdcs_utils.setOutputs (line 14)
  In cdcs (line 194) 
Test Failed at /home/blegat/.julia/dev/MathOptInterface/src/Test/contlinear.jl:1700
  Expression: MOI.get(model, MOI.TerminationStatus()) == config.optimal_status
   Evaluated: ITERATION_LIMIT::TerminationStatusCode = 11 == OPTIMAL::TerminationStatusCode = 1
ERROR: There was an error during testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant