Deprecated
As of 3.1 (to be removed in 4.0).
A linear constraint has one of the forms:
| Modifier and Type | Field and Description |
|---|---|
| private final transient RealVector | coefficients
Coefficients of the constraint (left hand side). |
| private final Relationship | relationship
Deprecated
as a consequence of Relationship between left and right hand sides (=, <=, >=).
Relationship being deprecated.
|
| private static final long | serialVersionUID
Serializable version identifier. |
| private final double | value
Value of the constraint (right hand side). |
| Access | Constructor and Description |
|---|---|
| public | LinearConstraint(final double[]
The coefficients of the constraint (left hand side) coefficients, final Relationship The type of (in)equality used in the constraint relationship, final double The value of the constraint (right hand side) value)
Deprecated
as a consequence of
Relationship being deprecated.
Build a constraint involving a single linear equation. |
| public | LinearConstraint(final RealVector
The coefficients of the constraint (left hand side) coefficients, final Relationship The type of (in)equality used in the constraint relationship, final double The value of the constraint (right hand side) value)
Deprecated
as a consequence of
Relationship being deprecated.
Build a constraint involving a single linear equation. |
| public | LinearConstraint(final double[]
The coefficients of the linear expression on the left hand side of the constraint lhsCoefficients, final double The constant term of the linear expression on the left hand side of the constraint lhsConstant, final Relationship The type of (in)equality used in the constraint relationship, final double[] The coefficients of the linear expression on the right hand side of the constraint rhsCoefficients, final double The constant term of the linear expression on the right hand side of the constraint rhsConstant)
Deprecated
as a consequence of
Relationship being deprecated.
Build a constraint involving two linear equations. |
| public | LinearConstraint(final RealVector
The coefficients of the linear expression on the left hand side of the constraint lhsCoefficients, final double The constant term of the linear expression on the left hand side of the constraint lhsConstant, final Relationship The type of (in)equality used in the constraint relationship, final RealVector The coefficients of the linear expression on the right hand side of the constraint rhsCoefficients, final double The constant term of the linear expression on the right hand side of the constraint rhsConstant)
Deprecated
as a consequence of
Relationship being deprecated.
Build a constraint involving two linear equations. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public RealVector | Returns: coefficients of the constraint (left hand side)Get the coefficients of the constraint (left hand side). |
| public Relationship | Returns: relationship between left and right hand sides
Deprecated
as a consequence of
Relationship being deprecated.
Get the relationship between left and right hand sides. |
| public double | Returns: value of the constraint (right hand side)Get the value of the constraint (right hand side). |
| public int | |
| private void | readObject(ObjectInputStream
stream from which the object should be read ois)Deserialize the instance. |
| private void |
| coefficients | back to summary |
|---|---|
| private final transient RealVector coefficients Coefficients of the constraint (left hand side). | |
| relationship | back to summary |
|---|---|
| private final Relationship relationship
Deprecated as a consequence of Relationship between left and right hand sides (=, <=, >=). | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable version identifier. | |
| value | back to summary |
|---|---|
| private final double value Value of the constraint (right hand side). | |
| LinearConstraint | back to summary |
|---|---|
| public LinearConstraint(final double[] coefficients, final Relationship relationship, final double value)
Deprecated as a consequence of Build a constraint involving a single linear equation. A linear constraint with a single linear equation has one of the forms:
| |
| LinearConstraint | back to summary |
|---|---|
| public LinearConstraint(final RealVector coefficients, final Relationship relationship, final double value)
Deprecated as a consequence of Build a constraint involving a single linear equation. A linear constraint with a single linear equation has one of the forms:
| |
| LinearConstraint | back to summary |
|---|---|
| public LinearConstraint(final double[] lhsCoefficients, final double lhsConstant, final Relationship relationship, final double[] rhsCoefficients, final double rhsConstant)
Deprecated as a consequence of Build a constraint involving two linear equations. A linear constraint with two linear equation has one of the forms:
| |
| LinearConstraint | back to summary |
|---|---|
| public LinearConstraint(final RealVector lhsCoefficients, final double lhsConstant, final Relationship relationship, final RealVector rhsCoefficients, final double rhsConstant)
Deprecated as a consequence of Build a constraint involving two linear equations. A linear constraint with two linear equation has one of the forms:
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getCoefficients | back to summary |
|---|---|
| public RealVector getCoefficients() Get the coefficients of the constraint (left hand side).
| |
| getRelationship | back to summary |
|---|---|
| public Relationship getRelationship()
Deprecated as a consequence of Get the relationship between left and right hand sides.
| |
| getValue | back to summary |
|---|---|
| public double getValue() Get the value of the constraint (right hand side).
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException Deserialize the instance.
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream oos) throws IOException Serialize the instance.
| |