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 linear equation (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[]
Coefficients for the linear equation being optimized. coefficients, double Constant term of the linear equation. constantTerm)
|
| public | LinearObjectiveFunction(RealVector
Coefficients for the linear equation being optimized. coefficients, double 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 optimized.Gets the coefficients of the linear equation being optimized. |
| public double | Returns: constant of the linear equation being optimized.Gets the constant of the linear equation being optimized. |
| public int | |
| private void | readObject(ObjectInputStream
stream from which the object should be read ois)Deserialize the instance. |
| public double | Returns: the value of the linear equation at the current point.Point at which linear equation must be evaluated. point)Implements org. Computes the value of the linear equation at the current point. |
| public double | Returns: the value of the linear equation at the current point.Point at which linear equation must be evaluated. point)Computes the value of the linear equation at the current point. |
| private void |
| coefficients | back to summary |
|---|---|
| private final transient RealVector coefficients Coefficients of the linear equation (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() Gets the coefficients of the linear equation being optimized.
| |
| getConstantTerm | back to summary |
|---|---|
| public double getConstantTerm() Gets the constant of the linear equation being optimized.
| |
| 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.
| |
| value | back to summary |
|---|---|
| public double value(final double[] point) Implements org. Computes the value of the linear equation at the current point.
| |
| value | back to summary |
|---|---|
| public double value(final RealVector point) Computes the value of the linear equation at the current point.
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream oos) throws IOException Serialize the instance.
| |