def __init__(self, **kwds): """ Constructor """ OptSolver.__init__(self, **kwds) self._assert_available = True self._valid_problem_formats = [ProblemFormat.colin_optproblem] self._valid_result_formats = {} self._valid_result_formats[ProblemFormat.colin_optproblem] = [ ResultsFormat.osrl, ResultsFormat.results ]
def __init__(self, **kwds): # set persistent config options tmp_kwds = {'type': kwds.pop('type', 'trustregion')} self.config = self.CONFIG(kwds, preserve_implicit=True) # # Call base class constructor # tmp_kwds['solver'] = self.config.solver OptSolver.__init__(self, **tmp_kwds)
def __init__(self, **kwds): # set persistent config options tmp_kwds = {'type':kwds.pop('type','trustregion')} self.config = self.CONFIG(kwds) # # Call base class constructor # tmp_kwds['solver'] = 'ipopt' OptSolver.__init__(self, **tmp_kwds)
def __init__(self, **kwds): # set persistent config options tmp_kwds = {'type':kwds.pop('type','trustregion')} self.config = self.CONFIG(kwds, preserve_implicit=True) # # Call base class constructor # tmp_kwds['solver'] = self.config.solver OptSolver.__init__(self, **tmp_kwds)
def __init__(self, **kwds): # # Call base class constructor # kwds['type'] = 'glpk_direct' OptSolver.__init__(self, **kwds) # NOTE: eventually both of the following attributes should be migrated # to a common base class. Is the current solve warm-started? A # transient data member to communicate state information across the # _presolve, _apply_solver, and _postsolve methods. self.warm_start_solve = False self._timelimit = None # Note: Undefined capabilities default to 'None' self._capabilities = Bunch() self._capabilities.linear = True self._capabilities.integer = True
def __init__(self, **kwds): # # Call base class constructor # kwds['type'] = 'trustregion' OptSolver.__init__(self, **kwds)