Initializing help system before first use

PWLExpression


  • public class PWLExpression
    extends FormulaExpression
    A class that represents a piecewise linear function.
    Since:
    43.00
    • Constructor Detail

      • PWLExpression

        public PWLExpression​(Variable argument,
                             double[] breakX,
                             double[] breakY)
        Create a new piecewise linear function invocation. The constructor will sort the breakpoints lexicographically.
        Parameters:
        argument - Variable at which the function should be evaluated.
        breakX - x coordinates of breakpoints.
        breakY - y coordinates of breakpoints.
        Since:
        43.00
      • PWLExpression

        public PWLExpression​(Variable argument,
                             PwlBreakpoint... points)
        Create a new piecewise linear function invocation. The constructor will sort the breakpoints lexicographically.
        Parameters:
        argument - Variable at which the function should be evaluated.
        points - The breakpoints for the new PWL.
        Since:
        43.00
      • PWLExpression

        public PWLExpression​(int argument,
                             double[] breakX,
                             double[] breakY)
        Create a new piecewise linear function invocation. The constructor will sort the breakpoints lexicographically.
        Parameters:
        argument - Column index at which the function should be evaluated.
        breakX - x coordinates of breakpoints.
        breakY - y coordinates of breakpoints.
        Since:
        43.00
      • PWLExpression

        public PWLExpression​(int argument,
                             PwlBreakpoint... points)
        Create a new piecewise linear function invocation. The constructor will sort the breakpoints lexicographically.
        Parameters:
        argument - Column index at which the function should be evaluated.
        points - The breakpoints for the new PWL.
        Since:
        43.00
    • Method Detail

      • getArgumentColumn

        public int getArgumentColumn()
      • getArgumentVariable

        public Variable getArgumentVariable()
      • getBreakX

        public double[] getBreakX()
      • getBreakY

        public double[] getBreakY()
      • evaluate

        public double evaluate​(double[] solution)
        Compute the value of this expression with respect to the given solution vector (which is not required to be feasible).
        Specified by:
        evaluate in class  Expression
        Parameters:
        solution - Solution values for which the expression is evaluated.
        Returns:
        The value of this expression evaluated at solution.
        Since:
        43.00
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class  java.lang.Object
        Returns:
        Since:
        43.00

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.