Ignore:
Timestamp:
11/18/09 21:22:13 (4 years ago)
Author:
jwatson
Message:

Fixed bug in CBC when in NL/SOL mode that was setting each primal and dual variable twice when reading the solver output.

File:
1 edited

Legend:

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

    r1906 r1910  
    252252    def process_other_data(self,results): 
    253253 
    254         # read the SOL file format if specified. 
    255         if self._results_format is ResultsFormat.sol:  
    256            if os.path.exists(self.soln_file): 
    257                results_reader = ReaderFactory(ResultsFormat.sol) 
    258                results = results_reader(self.soln_file, results, results.solution(0)) 
     254        # if dealing with SOL format files, we've already read 
     255        # this via the base class reader functionality. 
     256        if self._results_format is ResultsFormat.sol: 
    259257           return 
    260258 
    261259        # otherwise, go with the native CBC solution format. 
    262  
    263260        solution = results.solution(0) 
    264261        if solution.status is SolutionStatus.infeasible: 
Note: See TracChangeset for help on using the changeset viewer.