nocad.placement.anneal#

nocad.placement.anneal(D, fixed, n_add, method='gdfcmsa', beta=0.5, n_iter=500, t_max=10.0, t_min=0.01, m_max=10.0, m_min=2.0, rng=None)[source]#

One simulated annealing run with n_add additional nodes.

Parameters:
Dndarray of shape (N, N)

Distances D[s, i] from a candidate node to every state (finite).

fixedarray_like of int

Nodes that must stay in the configuration.

Returns:
nodesndarray of int (fixed first), costfloat

Examples using nocad.placement.anneal#

Simulated annealing: mCLASA and GDFCMSA

Simulated annealing: mCLASA and GDFCMSA