Skip to content

Newer CBC no longer works with Pyomo #1295

@mrmundt

Description

@mrmundt

In testing CBC 2.10.3 (from https://ampl.com/dl/open/cbc/cbc-linux64.zip) on RHEL7 with Python 3.7, these errors/failures are now occurring:

======================================================================
ERROR: test_cbc_nl_symbolic_labels (pyomo.solvers.tests.checks.test_writers.transplant_class.<locals>.C)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mmundt/devel-pyomo/pyomo/pyomo/solvers/tests/checks/test_writers.py", line 72, in writer_test
    load_solutions)
  File "/home/mmundt/devel-pyomo/pyomo/pyomo/solvers/tests/models/base.py", line 126, in solve
    **io_options)
  File "/home/mmundt/devel-pyomo/pyomo/pyomo/opt/base/solvers.py", line 600, in solve
    "Solver (%s) did not exit normally" % self.name)
pyutilib.common._exceptions.ApplicationError: Solver (cbc) did not exit normally
-------------------- >> begin captured logging << --------------------
pyomo.opt: ERROR: Solver (cbc) returned non-zero return code (-11)
pyomo.opt: ERROR: Solver log:
CBC 2.10.3: printingOptions=all
 
--------------------- >> end captured logging << ---------------------
 
======================================================================
FAIL: test_optimal_mip (pyomo.solvers.tests.checks.test_CBCplugin.TestCBC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mmundt/devel-pyomo/pyomo/pyomo/solvers/tests/checks/test_CBCplugin.py", line 121, in test_optimal_mip
    self.assertEqual(1.0, results.problem.lower_bound)
AssertionError: 1.0 != -1.0
 
======================================================================
FAIL: test_unbounded_mip (pyomo.solvers.tests.checks.test_CBCplugin.TestCBC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mmundt/devel-pyomo/pyomo/pyomo/solvers/tests/checks/test_CBCplugin.py", line 106, in test_unbounded_mip
    self.assertEqual(TerminationCondition.unbounded, results.solver.termination_condition)
AssertionError: EnumValue(<pyutilib.enum.enum.Enum object at 0x7fb23c9a9e10>, 11, 'unbounded') != EnumValue(<pyutilib.enum.enum.Enum object at 0x7fb23c9a9e10>, 12, 'infeasible')

These need to be addressed before introducing CBC testing in the Windows Github Actions (#1292).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpyomo.solverstesting_and_ciAny issues related to testing and/or continuous integration (e.g., github, travis, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions