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

Method _initialize

pymoo/core/algorithm.py:173–181  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

171 self.advance()
172
173 def _initialize(self) -> None:
174
175 # the time starts whenever this method is called
176 self.start_time = time.time()
177
178 # set the attribute for the optimization method to start
179 self.n_iter = 1
180 self.pop = Population.empty()
181 self.opt = None
182
183 def infill(self) -> Population | None:
184 if self.problem is None:

Callers 2

infillMethod · 0.95
_evaluateMethod · 0.80

Calls 2

emptyMethod · 0.80
timeMethod · 0.45

Tested by

no test coverage detected