Class representing a linear constraint for global parameters
Definition at line 16 of file constraints.py.
◆ __init__()
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.
21 def __init__(self, comment="", value=0.):
28 The constant term of the constraint: sum(c_i * par_i) = value
33 self.comment = comment
◆ add()
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.
◆ get_checksum()
Get a checksum to distinguish constraints quickly (computed only from labels)
Definition at line 51 of file constraints.py.
The documentation for this class was generated from the following file: