public class LinearConstraint extends Object implements Serializable
A linear constraint has one of the forms:
Constructor and Description |
---|
LinearConstraint(double[] lhsCoefficients,
double lhsConstant,
Relationship relationshipIn,
double[] rhsCoefficients,
double rhsConstant)
Build a constraint involving two linear equations.
|
LinearConstraint(double[] coefficientsIn,
Relationship relationshipIn,
double valueIn)
Build a constraint involving a single linear equation.
|
LinearConstraint(RealVector lhsCoefficients,
double lhsConstant,
Relationship relationshipIn,
RealVector rhsCoefficients,
double rhsConstant)
Build a constraint involving two linear equations.
|
LinearConstraint(RealVector coefficientsIn,
Relationship relationshipIn,
double valueIn)
Build a constraint involving a single linear equation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
RealVector |
getCoefficients()
Gets the coefficients of the constraint (left hand side).
|
Relationship |
getRelationship()
Gets the relationship between left and right hand sides.
|
double |
getValue()
Gets the value of the constraint (right hand side).
|
int |
hashCode() |
public LinearConstraint(double[] coefficientsIn, Relationship relationshipIn, double valueIn)
A linear constraint with a single linear equation has one of the forms:
coefficientsIn
- The coefficients of the constraint (left hand side)relationshipIn
- The type of (in)equality used in the constraintvalueIn
- The value of the constraint (right hand side)public LinearConstraint(RealVector coefficientsIn, Relationship relationshipIn, double valueIn)
A linear constraint with a single linear equation has one of the forms:
coefficientsIn
- The coefficients of the constraint (left hand side)relationshipIn
- The type of (in)equality used in the constraintvalueIn
- The value of the constraint (right hand side)public LinearConstraint(double[] lhsCoefficients, double lhsConstant, Relationship relationshipIn, double[] rhsCoefficients, double rhsConstant)
A linear constraint with two linear equation has one of the forms:
lhsCoefficients
- The coefficients of the linear expression on the left hand side of the constraintlhsConstant
- The constant term of the linear expression on the left hand side of the constraintrelationshipIn
- The type of (in)equality used in the constraintrhsCoefficients
- The coefficients of the linear expression on the right hand side of the constraintrhsConstant
- The constant term of the linear expression on the right hand side of the constraintpublic LinearConstraint(RealVector lhsCoefficients, double lhsConstant, Relationship relationshipIn, RealVector rhsCoefficients, double rhsConstant)
A linear constraint with two linear equation has one of the forms:
lhsCoefficients
- The coefficients of the linear expression on the left hand side of the constraintlhsConstant
- The constant term of the linear expression on the left hand side of the constraintrelationshipIn
- The type of (in)equality used in the constraintrhsCoefficients
- The coefficients of the linear expression on the right hand side of the constraintrhsConstant
- The constant term of the linear expression on the right hand side of the constraintpublic RealVector getCoefficients()
public Relationship getRelationship()
public double getValue()
Copyright © 2023 CNES. All rights reserved.