Deprecated
As of 3.1 (to be removed in 4.0).
A linear objective function has one the form:
c1x1 + ... cnxn + dThe ci and d are the coefficients of the equation, the xi are the coordinates of the current point.
| Modifier and Type | Field and Description |
|---|---|
| private final transient RealVector | coefficients
Coefficients of the constraint (ci). |
| private final double | constantTerm
Constant term of the linear equation. |
| private static final long | serialVersionUID
Serializable version identifier. |
| Access | Constructor and Description |
|---|---|
| public | LinearObjectiveFunction(double[]
The coefficients for the linear equation being optimized coefficients, double The constant term of the linear equation constantTerm)
|
| public | LinearObjectiveFunction(RealVector
The coefficients for the linear equation being optimized coefficients, double The constant term of the linear equation constantTerm)
|
| 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 linear equation being optimizedGet the coefficients of the linear equation being optimized. |
| public double | Returns: constant of the linear equation being optimizedGet the constant of the linear equation being optimized. |
| public double | Returns: value of the linear equation at the current pointpoint at which linear equation must be evaluated point)Compute the value of the linear equation at the current point |
| public double | Returns: value of the linear equation at the current pointpoint at which linear equation must be evaluated point)Compute the value of the linear equation at the current point |
| 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 (ci). | |
| constantTerm | back to summary |
|---|---|
| private final double constantTerm Constant term of the linear equation. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable version identifier. | |
| LinearObjectiveFunction | back to summary |
|---|---|
public LinearObjectiveFunction(double[] coefficients, double constantTerm)
| |
| LinearObjectiveFunction | back to summary |
|---|---|
public LinearObjectiveFunction(RealVector coefficients, double constantTerm)
| |
| 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 linear equation being optimized.
| |
| getConstantTerm | back to summary |
|---|---|
| public double getConstantTerm() Get the constant of the linear equation being optimized.
| |
| getValue | back to summary |
|---|---|
| public double getValue(final double[] point) Compute the value of the linear equation at the current point
| |
| getValue | back to summary |
|---|---|
| public double getValue(final RealVector point) Compute the value of the linear equation at the current point
| |
| 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.
| |