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

Error during test: test_farkas_dual_max_ii and test_supports_constrainttest fails #405

Closed
trathi05 opened this issue May 9, 2021 · 2 comments · Fixed by #406
Closed

Comments

@trathi05
Copy link

trathi05 commented May 9, 2021

On downloading Gurobi.jl and running test Gurobi, the package fails the test. Here's the log:

(clb_dual, c_dual) = ([1.0, 0.5], -0.5)
(clb_dual, c_dual) = ([-1.0, -0.5], -0.5)
test_farkas_dual_max_ii: Error During Test at C:\Users\pc\.julia\packages\Gurobi\Dn7m0\test\MOI\MOI_wrapper.jl:1453
 Unexpected Pass
 Expression: c_dual[1] < 1.0e-6
 Got correct result, please change to @test if no longer broken.

test_farkas_dual_max_ii: Error During Test at C:\Users\pc\.julia\packages\Gurobi\Dn7m0\test\MOI\MOI_wrapper.jl:1454
 Unexpected Pass
 Expression: ≈(clb_dual[1], 2c_dual, atol = 1.0e-6)
 Got correct result, please change to @test if no longer broken.

test_farkas_dual_max_ii: Error During Test at C:\Users\pc\.julia\packages\Gurobi\Dn7m0\test\MOI\MOI_wrapper.jl:1455
 Unexpected Pass
 Expression: ≈(clb_dual[2], c_dual, atol = 1.0e-6)
 Got correct result, please change to @test if no longer broken.

(clb_dual, c_dual) = ([2.0, 1.0], -1.0)
(clb_dual, c_dual) = ([2.0, 1.0], -1.0)
(clb_dual, c_dual) = ([-2.0, -1.0], -1.0)
(clb_dual, c_dual) = ([2.0, 1.0], -1.0)
Test Summary:                                       | Pass  Error  Broken  Total
MathOptInterface Tests                              | 3529      3       1   3533
  test_CallbackFunction_CallbackNodeStatus          |    1                     1
  test_CallbackFunction_broadcast                   |    2                     2
  test_CallbackFunction_callback_HeuristicSolution  |    3                     3
  test_CallbackFunction_callback_LazyConstraint     |    6                     6
  test_CallbackFunction_callback_OptimizeInProgress |  100                   100
  test_CallbackFunction_callback_UserCut            |    2                     2
  test_heuristic_callback                           |   13                    13
  test_heuristic_callback_LazyConstraint            |    1                     1
  test_heuristic_callback_UserCut                   |    1                     1
  test_lazy_constraint_callback                     |    9                     9
  test_lazy_constraint_callback_HeuristicSolution   |    1                     1
  test_lazy_constraint_callback_OptimizeInProgress  |    3                     3
  test_lazy_constraint_callback_UserCut             |    1                     1
  test_user_cut_callback                            |   68                    68
  test_user_cut_callback_HeuristicSolution          |    1                     1
  test_user_cut_callback_LazyConstraint             |    1                     1
  test_multiobjective                               |   31                    31
  test_2_soc                                        |    3                     3
  test_Add_and_delete_constraints                   |    2                     2
  test_Add_and_delete_sos_constraints               |    7                     7
  test_Attributes                                   |    3                     3
  test_Buffered_deletion_test                       |   14                    14
  test_Conflict_refiner_affine_affine               |    9                     9
  test_Conflict_refiner_bound_affine                |    7                     7
  test_Conflict_refiner_bound_bound                 |    7                     7
  test_Conflict_refiner_equalto                     |    9                     9
  test_Conflict_refiner_invalid_interval            |    6                     6
  test_Conflict_refiner_no_conflict                 |    3                     3
  test_Conflict_refiner_outside_conflict            |   10                    10
  test_Constant_objective_issue_111                 |    4                     4
  test_ConstraintAttribute                          |    8                     8
  test_Duals_with_equal_bounds_250                  |    2                     2
  test_Duplicate_names_ScalarAffineFunction         |    6                     6
  test_Duplicate_names_SingleVariable               |    8                     8
  test_Duplicate_names_Variables                    |    6                     6
  test_FEASIBILITY_SENSE_zeros_objective            |    2                     2
  test_GRBterminate                                 |    1                     1
  test_InterruptException                           |    1                     1
  test_MULTI_ENV                                    |                      No tests
  test_MULTI_ENV_automatic_env                      |    2                     2
  test_MULTI_ENV_automatic_env_empty                |    2                     2
  test_MULTI_ENV_manual_finalize                    |    2                     2
  test_ModelAttribute                               |    6                     6
  test_Objective_functions                          |    4                     4
  test_QCPDual_1                                    |    6                     6
  test_QCPDual_default                              |    6                     6
  test_RawParameter                                 |    2                     2
  test_User_limit_handling_issue_140                |    3                     3
  test_VariableAttribute                            |    7                     7
  test_add_constrained_variables                    |    4                     4
  test_basic_constraint_tests                       |  711                   711
  test_conictest                                    |  439                   439
  test_contlineartest                               |  524                   524
  test_contquadratictest                            |  227                   227
  test_copytest                                     |   37                    37
  test_default_objective_test                       |                      No tests
  test_default_status_test                          |    3                     3
  test_emptytest                                    |   12                    12
  test_extra_name_Affine_constraints                |    5                     5
  test_extra_name_Variable_bounds                   |    5                     5
  test_extra_name_Variables                         |    6                     6
  test_farkas_dual_max                              |    7                     7
  test_farkas_dual_max_ii                           |    4      3              7
  test_farkas_dual_min                              |    7                     7
  test_farkas_dual_min_equalto                      |    7                     7
  test_farkas_dual_min_ii                           |    7                     7
  test_farkas_dual_min_interval                     |    7                     7
  test_indicator_name                               |    1                     1
  test_indicator_nonconstant                        |    1                     1
  test_indicator_nonconstant_x                      |    1                     1
  test_indicator_on_one                             |    2                     2
  test_indicator_on_zero                            |    2                     2
  test_indicator_too_many_indicators                |    1                     1
  test_intlinear                                    |  289                   289
  test_modificationtest                             |  163                   163
  test_multiple_solutions                           |   21                    21
  test_nametest                                     |  147                   147
  test_orderedindicestest                           |   13                    13
  test_scalar_function_constant_not_zero            |    2                     2
  test_set_basis                                    |    2                     2
  test_set_lower_bound_twice                        |   10                    10
  test_set_upper_bound_twice                        |   10                    10
  test_soc_negative_initial_bound                   |    2                     2
  test_soc_negative_post_bound                      |    2                     2
  test_soc_negative_post_bound_ii                   |    3                     3
  test_soc_negative_post_bound_iii                  |    3                     3
  test_soc_no_initial_bound                         |    2                     2
  test_soc_nonnegative_initial_bound                |    2                     2
  test_soc_nonnegative_post_bound                   |    2                     2
  test_solvername                                   |    1                     1
  test_start_values_test                            |    8                     8
  test_supports_constrainttest                      |    8              1      9
  test_unittest                                     |  399                   399
  test_user_provided_env                            |    3                     3
  test_user_provided_env_empty                      |    4                     4
  test_validtest                                    |   11                    11
ERROR: LoadError: Some tests did not pass: 3529 passed, 0 failed, 3 errored, 1 broken.
in expression starting at C:\Users\pc\.julia\packages\Gurobi\Dn7m0\test\runtests.jl:41
ERROR: Package Gurobi errored during testing

I am using Julia 1.6.1 and following are the packages installed:

BARON v0.6.5
CPLEX v0.7.7
Gurobi v0.9.12
Ipopt v0.6.5
JuMP v0.21.8

I am not able to understand the exact reason why these tests fail. Is it safe to ignore these tests or is there some package compatibility issue? Thank you.

@odow
Copy link
Member

odow commented May 9, 2021

Previous versions of Gurobi (the solver) had a bug that caused incorrect solutions. I guess this means the fix was pushed through into the latest version. You can safely ignore these.

@trathi05
Copy link
Author

trathi05 commented May 9, 2021

Got it. Thanks.

@odow odow closed this as completed in #406 May 10, 2021
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.

2 participants