SCIPintervalIntersectEps

Function SCIPintervalIntersectEps 

Source
pub unsafe extern "C" fn SCIPintervalIntersectEps(
    resultant: *mut SCIP_INTERVAL,
    eps: f64,
    operand1: SCIP_INTERVAL,
    operand2: SCIP_INTERVAL,
)
Expand description

intersection of two intervals with epsilon tolerance

If intersection of operand1 and operand2 is empty, but minimal (relative) distance of intervals is at most epsilon, then set resultant to singleton containing the point in operand1 that is closest to operand2, i.e.,

  • resultant = { operand1.sup }, if operand1.sup < operand2.inf and reldiff(operand2.inf,operand1.sup) ≤ eps
  • resultant = { operand1.inf }, if operand1.inf > operand2.sup and reldiff(operand1.inf,operand2.sup) ≤ eps
  • resultant = intersection of operand1 and operand2, otherwise