linear_constraints(num_params,
model_type=None,
spin=None,
spin_id=None,
scaling_matrix=None)
| source code
|
Set up the model-free linear constraint matrices A and b.
Standard notation
The order parameter constraints are:
0 <= S2 <= 1
0 <= S2f <= 1
0 <= S2s <= 1
By substituting the formula S2 = S2f.S2s into the above
inequalities, the additional two inequalities can be derived:
S2 <= S2f
S2 <= S2s
Correlation time constraints are:
te >= 0
tf >= 0
ts >= 0
tf <= ts
te, tf, ts <= 2 * tm
Additional constraints used include:
Rex >= 0
0.9e-10 <= r <= 2e-10
-300e-6 <= CSA <= 0
Rearranged notation
The above inequality constraints can be rearranged into:
S2 >= 0
-S2 >= -1
S2f >= 0
-S2f >= -1
S2s >= 0
-S2s >= -1
S2f - S2 >= 0
S2s - S2 >= 0
te >= 0
tf >= 0
ts >= 0
ts - tf >= 0
Rex >= 0
r >= 0.9e-10
-r >= -2e-10
CSA >= -300e-6
-CSA >= 0
Matrix notation
In the notation A.x >= b, where A is an matrix of coefficients, x
is an array of parameter values, and b is a vector of scalars, these
inequality constraints are:
| 1 0 0 0 0 0 0 0 0 | | 0 |
| | | |
|-1 0 0 0 0 0 0 0 0 | | -1 |
| | | |
| 0 1 0 0 0 0 0 0 0 | | 0 |
| | | |
| 0 -1 0 0 0 0 0 0 0 | | -1 |
| | | |
| 0 0 1 0 0 0 0 0 0 | | S2 | | 0 |
| | | | | |
| 0 0 -1 0 0 0 0 0 0 | | S2f | | -1 |
| | | | | |
|-1 1 0 0 0 0 0 0 0 | | S2s | | 0 |
| | | | | |
|-1 0 1 0 0 0 0 0 0 | | te | | 0 |
| | | | | |
| 0 0 0 1 0 0 0 0 0 | . | tf | >= | 0 |
| | | | | |
| 0 0 0 0 1 0 0 0 0 | | ts | | 0 |
| | | | | |
| 0 0 0 0 0 1 0 0 0 | | Rex | | 0 |
| | | | | |
| 0 0 0 0 -1 1 0 0 0 | | r | | 0 |
| | | | | |
| 0 0 0 0 0 0 1 0 0 | | CSA | | 0 |
| | | |
| 0 0 0 0 0 0 0 1 0 | | 0.9e-10 |
| | | |
| 0 0 0 0 0 0 0 -1 0 | | -2e-10 |
| | | |
| 0 0 0 0 0 0 0 0 1 | | -300e-6 |
| | | |
| 0 0 0 0 0 0 0 0 -1 | | 0 |
- Parameters:
num_params (int) - The number of parameters in the model.
model_type (str) - The model type, one of 'all', 'diff', 'mf', or 'local_tm'.
spin (SpinContainer instance) - The spin data container. If this argument is supplied, then the
spin_id argument will be ignored.
spin_id (str) - The spin identification string.
scaling_matrix (numpy diagonal matrix) - The diagonal, square scaling matrix.
|