AHalfB

class AHalfB : public feasst::Constraint

Constrain the number of the first type of particle, A, to be half of the number of the second type of particle, B.

Arguments

  • particle_type_A: particle type for A (default: 0).

  • particle_type_B: particle type for B (default: 1).

  • extra: allow |2*A - B| <= extra (default: 0).