Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _init_annealers(self, _cand_):
_p_list_ = [
System(**self._opt_args_.kwargs_opt, temp=temp)
for temp in self._opt_args_.system_temperatures
]
for _p_ in _p_list_:
_p_.pos_current = _cand_._space_.get_random_pos()
_p_.pos_best = _p_.pos_current
return _p_list_
def _init_annealer(self, _cand_):
temp = self._opt_args_.system_temperatures[self.i]
_p_ = System(self._opt_args_, temp=temp)
_p_.pos_new = _cand_._space_.get_random_pos()
return _p_