Initializing help system before first use

# BinaryExpression

- java.lang.Object
- - com.dashoptimization.objects.Expression
  - - com.dashoptimization.objects.AbstractExpression
    - - com.dashoptimization.objects.FormulaExpression
      - - com.dashoptimization.objects.BinaryExpression

-     public final class BinaryExpression
      extends FormulaExpression

  A binary operation in a non-linear formula.
  Since:
    43.00

- - ### Nested Class Summary

    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `BinaryExpression.Operator` | Enumeration for binary expression operators.

  - ### Constructor Summary

    Constructor | Description
    --- | ---
    `BinaryExpression​(Expression left, BinaryExpression.Operator op, Expression right)` | Create a new binary expression.

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `double` | `evaluate​(double[] solution)` | Compute the value of this expression with respect to the given solution vector (which is not required to be feasible).
    `Expression` | `getLeft()` |
    `BinaryExpression.Operator` | `getOp()` |
    `Expression` | `getRight()` |
    `java.lang.String` | `toString()`

    - ### Methods inherited from class com.dashoptimization.objects.AbstractExpression

      `eq, eq, geq, geq, in, leq, leq`

    - ### Methods inherited from class com.dashoptimization.objects.Expression

      `div, div, minus, minus, mul, mul, plus, plus, uminus`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### BinaryExpression

          public BinaryExpression​(Expression left,
                                  BinaryExpression.Operator op,
                                  Expression right)

      Create a new binary expression.
      Parameters:
        `left` - Left operand of new expression.
        `op` - Operator new expression.
        `right` - Right operand of new expression.
      Since:
        43.00

  - ### Method Detail

    - #### getLeft

          public Expression getLeft()

    - #### getOp

          public BinaryExpression.Operator getOp()

    - #### getRight

          public Expression getRight()

    - #### 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).

      Examples using `evaluate`:

      - CapitalBudgeting.java
      - PolygonObjects.java
      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

Parent Topic Class Summary

© 2001-2026 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.