Ignore:
Timestamp:
Dec 22, 2009 11:05:07 PM (10 years ago)
Author:
jwatson
Message:

Adding "mipgap" attribute to the base solver class, mirroring the timelimit option. This option is pervasive, and the solver plugins themselves need to know how to write the option.

File:
1 edited

Legend:

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

    r1983 r2033  
    127127        self._assert_available=False
    128128
     129        # a fairly universal solver feature, at least when dealing
     130        # with problems containing integers. promoted to a base class
     131        # attribute to allow each sub-solver to automatically write
     132        # out the appropriate option. default is None, meaning
     133        # unassigned. currently not allowing the mipgap to be over-ridden
     134        # via an argument to the solve() method, mainly because we don't
     135        # want to persistence of this parameter to be violated.
     136        self.mipgap = None
     137
    129138    def available(self, exception_flag=True):
    130139        """ True if the solver is available """
Note: See TracChangeset for help on using the changeset viewer.