Ignore:
Timestamp:
Nov 20, 2009 5:27:31 PM (10 years ago)
Author:
wehart
Message:

Rework of the SolverResults? object, to provide for a more explicit
definition of solver results, and to support loading of
solver results from YAML-formated data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.opt/trunk/coopr/opt/base/solver.py

    r1900 r1918  
    171171        if self._results_format is None:
    172172           self._results_format= self._default_results_format(self._problem_format)
    173         if self._results_format not in self._valid_result_formats[self._problem_format]:
    174            raise ValueError, "Results format `"+str(self._results_format)+"' cannot be used with problem format `"+str(self._problem_format)+"' in solver "+self.name
     173        #
     174        # Disabling this check for now.  A solver doesn't have just _one_ results format.
     175        #
     176        #if self._results_format not in self._valid_result_formats[self._problem_format]:
     177        #   raise ValueError, "Results format `"+str(self._results_format)+"' cannot be used with problem format `"+str(self._problem_format)+"' in solver "+self.name
    175178        if self._results_format == ResultsFormat.log:
    176179            self.results_reader = None
Note: See TracChangeset for help on using the changeset viewer.