nocad.placement.Placement#

class nocad.placement.Placement(kind='sensors', method='gdfcmsa', r_max=None, n_add=None, beta=0.5, n_iter=500, n_runs=10, base='path_finding', random_state=None)[source]#

Bases: BaseEstimator

Place additional driver or sensor nodes to bound the relative order.

Parameters:
kind{“sensors”, “drivers”}, default=”sensors”
method{“set_cover”, “retrofit”, “centrality”, “mclasa”, “gdfcmsa”}, default=”gdfcmsa”
r_maxint, optional

Required bound on the relative order (network distance). Needed by the set covering and centrality methods; the annealing methods add nodes until it holds.

n_addint, optional

Number of nodes added by the annealing methods when r_max is None.

betafloat, default=0.5

Weight of the worst case in the cost.

n_iter, n_runsint, default=500, 10

Annealing iterations and independent runs.

basestr, default=”path_finding”

Method of the initial (fixed) configuration, see nocad.driver_nodes().

random_stateint, Generator or None
Attributes:
base_nodes_ndarray

Matching-based configuration that ensures controllability (observability).

nodes_ndarray

Final configuration.

n_added_int
cost_, max_order_, mean_order_float
depth_ndarray of shape (N,)

Control (observation) depth of every state for the final configuration.

history_pandas.DataFrame

Annealing methods: best result for every number of added nodes.

Examples

>>> from nocad.datasets import load_nocad_example
>>> p = Placement(kind="drivers", method="retrofit", r_max=2).fit(load_nocad_example().adj)
>>> p.base_nodes_, p.nodes_, p.max_order_
(array([7]), array([3, 7]), 2.0)

Examples using nocad.placement.Placement#

Control and observation depth maps

Control and observation depth maps

The operability plane

The operability plane

Robustness of input and output configurations

Robustness of input and output configurations

Set covering and centrality-based placement

Set covering and centrality-based placement

Simulated annealing: mCLASA and GDFCMSA

Simulated annealing: mCLASA and GDFCMSA

Heat exchanger networks

Heat exchanger networks