Variable

Static Public Summary
public

This class enables automatic addition of Hamiltonian terms to a CPM through their parameter names.

Static Public

public AutoAdderConfig: object source

import AutoAdderConfig from 'Artistoo/src/hamiltonian/AutoAdderConfig.js'

This class enables automatic addition of Hamiltonian terms to a CPM through their parameter names.

For each parameter name, we specify one Hamiltonian term. If the parameter is present, then a new instance of this term is initialized with the CPM's configuration as parameter and added to the CPM.

Properties:

NameTypeAttributeDescription
J Constraint

An Adhesion constraint is added when there is a parameter J.

LAMBDA_V Constraint

A VolumeConstraint is added when there is a parameter LAMBDA_V.

LAMBDA_P Constraint

A PerimeterConstraint is added when there is a parameter LAMBDA_P.

LAMBDA_ACT Constraint

An ActivityConstraint is added when there is a parameter LAMBDA_ACT.

IS_BARRIER Constraint

A BarrierConstraint is added when there is a parameter IS_BARRIER.