Class FiniteDifferenceBounds

java.lang.Object
de.labathome.trustconstr.records.FiniteDifferenceBounds
Direct Known Subclasses:
StrictBounds

public class FiniteDifferenceBounds extends Object
  • Constructor Details

    • FiniteDifferenceBounds

      public FiniteDifferenceBounds(Matrix lb, Matrix ub, boolean keepFeasible)
      Parameters:
      lb - per-variable lower bound (n × 1)
      ub - per-variable upper bound (n × 1)
      keepFeasible - if true, every FD perturbation must stay strictly inside the box
  • Method Details

    • unbounded

      public static FiniteDifferenceBounds unbounded(long nVars)
      Convenience factory for the bound-free case: -inf ≤ x ≤ +inf.
      Parameters:
      nVars - number of decision variables
      Returns:
      an unbounded FiniteDifferenceBounds of the requested size
    • lb

      public Matrix lb()
      Returns:
      defensive copy of the lower bounds (n × 1)
    • ub

      public Matrix ub()
      Returns:
      defensive copy of the upper bounds (n × 1)
    • keepFeasible

      public boolean keepFeasible()
      Returns:
      whether perturbations must stay strictly inside the box