ConstrainModelIndex

class ConstrainModelIndex : public feasst::Constraint

Constrain Model::model_index.

Public Functions

int potential_index() const

Return the potential_index.

int model_index(const System &system, const Acceptance &acceptance) const

Return the Model::model_index proposed by a Trial.

Arguments

  • maximum: maximum model_index. If -1, no limit (default: -1).

  • minimum: minimum model_index (default: 0).

  • potential_index: index of potential for model (default: 0).