Changeset 2996


Ignore:
Timestamp:
Sep 6, 2010 12:37:19 AM (9 years ago)
Author:
wehart
Message:

Adding further logic to control reader/writer when
ASL is not defined in CBC solver.

Correcting baseline for CBC when processing NL/SOL files. Less is
known about these results... !?!

Location:
coopr.plugins/trunk/coopr/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • coopr.plugins/trunk/coopr/plugins/mip/CBCplugin.py

    r2995 r2996  
    2727def configure():
    2828    global cbc_compiled_with_asl
    29     #
    30     # Disabling ASL interface, which doesn't provide a rich set of info
    31     # for the solver.
    32     #
    33     cbc_compiled_with_asl=False
    34     #
    3529    if cbc_compiled_with_asl is None:
    3630        cbc = CBC()
     
    8276       if self._problem_format is None:
    8377
    84           if self._valid_problem_formats[0] is ProblemFormat.nl:
     78          if cbc_compiled_with_asl and self._valid_problem_formats[0] is ProblemFormat.nl:
    8579             self._problem_format = ProblemFormat.nl
    8680          else:
  • coopr.plugins/trunk/coopr/plugins/tests/mip/test4_cbc.txt

    r2939 r2996  
    88Problem:
    99- Name: unknown
    10   Lower bound: 88.578
     10  Lower bound: -.inf
    1111  Upper bound: .inf
    1212  Number of objectives: 1
     
    3232- number of solutions: 2
    3333  number of solutions displayed: 2
    34 - Gap: 0.0
    35   Status: optimal
     34- Status: unknown
    3635  Objective:
    3736    f:
    3837      Id: 0
    39       Value: 88.578
     38      Value: .inf
    4039- Status: unknown
    4140  Message: Cbc 1.04 optimal, objective 9e+01; 1 iterations
Note: See TracChangeset for help on using the changeset viewer.