How to use the hyperactive.optimizers.monte_carlo.parallel_tempering.System function in hyperactive

To help you get started, we’ve selected a few hyperactive examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SimonBlanke / Hyperactive / hyperactive / optimizers / monte_carlo / parallel_tempering.py View on Github external
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_
github SimonBlanke / Hyperactive / hyperactive / optimizers / monte_carlo / parallel_tempering.py View on Github external
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_