MCPcopy Create free account
hub / github.com/anyoptimization/pymoo / _setup

Method _setup

pymoo/algorithms/base/bracket.py:14–19  ·  view source on GitHub ↗
(self, problem, a=None, b=None, **kwargs)

Source from the content-addressed store, hash-verified

12 self.a, self.b = a, b
13
14 def _setup(self, problem, a=None, b=None, **kwargs):
15 msg = "Only problems with one variable, one objective and no constraints can be solved!"
16 assert (
17 problem.n_var == 1 and not problem.has_constraints() and problem.n_obj == 1
18 ), msg
19 self.a, self.b = a, b
20
21 def _initialize_infill(self):
22

Callers 1

setupMethod · 0.45

Calls 1

has_constraintsMethod · 0.45

Tested by

no test coverage detected