Belle II Software development
|
Public Member Functions | |
def | __init__ (self, comment="", value=0.) |
def | add (self, label, coeff) |
def | get_checksum (self) |
Public Attributes | |
value | |
Value. | |
comment | |
Comment. | |
data | |
Data. | |
Class representing a linear constraint for global parameters
Definition at line 16 of file constraints.py.
def __init__ | ( | self, | |
comment = "" , |
|||
value = 0. |
|||
) |
Initialize constraint comment : str TODO: Not yet used value : float The constant term of the constraint: sum(c_i * par_i) = value
Definition at line 21 of file constraints.py.
def add | ( | self, | |
label, | |||
coeff | |||
) |
Add coefficient for a global parameter Parameters ---------- label : int global parameter id (GlobalLabel::label()) coeff : float coefficient of the parameter in constraint
Definition at line 37 of file constraints.py.
def get_checksum | ( | self | ) |
Get a checksum to distinguish constraints quickly (computed only from labels)
Definition at line 51 of file constraints.py.
comment |
Comment.
Definition at line 33 of file constraints.py.
data |
Data.
Definition at line 35 of file constraints.py.
value |
Value.
Definition at line 31 of file constraints.py.