nocad.placement.annealing_placement#

nocad.placement.annealing_placement(adj, fixed, method='gdfcmsa', r_max=None, n_add=None, beta=0.5, n_iter=500, n_runs=10, random_state=None)[source]#

Add nodes by mCLASA or GDFCMSA (MATLAB mCLASArMax, GDFCMSArMax, ...addMax).

Parameters:
adjnetwork

For sensors pass the reversed network, so that distances run from the sensor candidates to the states.

fixedarray_like of int

Nodes of the matching-based configuration (kept).

r_maxfloat, optional

Add nodes one at a time until the maximal relative order is at most r_max.

n_addint, optional

Add exactly n_add nodes (used if r_max is None).

n_iter, n_runsint

Annealing iterations per run and independent runs per number of added nodes.

Returns:
nodesndarray of int

Best configuration found (sorted).

historylist of dict

For every number of added nodes \(K^+\): best cost, maximal and mean relative order and the configuration.