pele.landscape.connect_manager#
classes to organize strategies for selecting which minima in a database to choose for a double ended connect run.
- class pele.landscape.connect_manager.ConnectManagerGMin[source]
-
class ConnectManagerGMin(BaseConnectManager):return connect jobs in order to connect everything to the global minimum
- class pele.landscape.connect_manager.ConnectManagerUntrap[source]
-
class ConnectManagerUntrap(BaseConnectManager):class to select double ended connect jobs using the untrap strategy Notes ------ the untrap strategy selects minima with the goal of eliminating artificially high energy barriers. Each minima is weighted by the energy barrier to get to the global minimum divided by the energy difference with the global minimum. This weight determines the order with in the minima are selected for a double ended connect run. Parameters ---------- database : pele Database object list_len : int the class will create a list of minima pairs of length list_len. When this list is empty the list will be rebuilt. Essentially this parameter indicates how often to rebuild the list of minima pairs to connect
- class pele.landscape.connect_manager.ConnectManagerCombine[source]
-
class ConnectManagerCombine(BaseConnectManager):a class to organize choosing minima in order to combine disconnected clusters of minima
- Parameters:
- databaseDatabase object
- list_lenint
the class will create a list of minima pairs of length list_len. When this list is empty the list will be rebuilt. Essentially this parameter indicates how often to rebuild the list of minima pairs to connect
- clust_minint
Clusters of minima below this size will be ignored.
- class pele.landscape.connect_manager.ConnectManagerRandom[source]
-
class ConnectManagerRandom(BaseConnectManager):manager to return random minima to connect
- ConnectManagerRandom.get_connect_job()[source]
-
def get_connect_job(self):select two minima randomly
- class pele.landscape.connect_manager.ConnectManager[source]
-
class ConnectManager:class to manage which minima to try to connect
- Parameters:
- databasepele Database object
- strategystring
define the default strategy for the connect runs. Can be one of [“random”, “combine”, “untrap”, “gmin”]
Notes
Organize which minima pairs to submit for double ended connect jobs. This class chooses between the different selection strategies. The actual strategies are implemented in separate classes.
Selection strategies:
“random” : choose two minima randomly
“gmin” : connect all minima to the global minimum
“combine” : try to connect disconnected clusters of minima.
“untrap” : try to eliminate non-physical barriers to the global minimum
- class ConnectManager.NoMoreConnectionsError[source]
-
class NoMoreConnectionsError(Exception):raised when the connect manager can’t find any more pairs to connect
- ConnectManager.untried()[source]
-
def untried(self, min1, min2):return true if this minima pair have not been tried yet