CompartmentEqualityConstraint¶
-
class
CompartmentEqualityConstraint(weight, i, j, parameter, erange, crange)[source]¶ Bases:
objectAn CompartmentEqualityConstraint adds a penalty to the residual if 2 compartments of the e matrix differ more than by just a scaling parameter in the sum over a given range. It calculates as
penalty = weight * (parameter * sum(c[range, i]) - c[range, j])Methods Summary
calculateMethods Documentation
-
crange= None¶ The range on the c matrix axis the constraint is applied on
-
erange= None¶ The range on the e matrix axis the constraint is applied on
-
i= None¶ Index of the first compartment
-
j= None¶ Index of the second compartment
-
parameter= None¶ Index of the parameter
-
weight= None¶ Weight factor of the penalty
-