boundlab.diff.zono3.DiffBounds#
- class boundlab.diff.zono3.DiffBounds[source]#
Bases:
objectAffine enclosures for both branches and for their difference.
xandyare ordinary zonotope relaxations,branch ≈ slope·input + bias ± error·ε.The difference is enclosed as:
diff ≈ diff_slope·d + diff_x_weight·x + diff_y_weight·y + diff_bias ± diff_x_error·ε_x ± diff_y_error·ε_y ± diff_error·ε_newwhere
ε_xandε_yare the same symbols thexandyenclosures introduced. A weight or error left at0costs nothing.Methods
- __init__(name, x, y, diff_slope, diff_bias, diff_error, diff_x_weight=0.0, diff_y_weight=0.0, diff_x_error=0.0, diff_y_error=0.0)#