|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.optimization.linear.LinearObjectiveFunction
@Deprecated public class LinearObjectiveFunction
An objective function for a linear optimization problem.
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.
Field Summary | |
---|---|
private RealVector |
coefficients
Deprecated. Coefficients of the constraint (ci). |
private double |
constantTerm
Deprecated. Constant term of the linear equation. |
private static long |
serialVersionUID
Deprecated. Serializable version identifier. |
Constructor Summary | |
---|---|
LinearObjectiveFunction(double[] coefficients,
double constantTerm)
Deprecated. |
|
LinearObjectiveFunction(RealVector coefficients,
double constantTerm)
Deprecated. |
Method Summary | |
---|---|
boolean |
equals(Object other)
Deprecated. |
RealVector |
getCoefficients()
Deprecated. Get the coefficients of the linear equation being optimized. |
double |
getConstantTerm()
Deprecated. Get the constant of the linear equation being optimized. |
double |
getValue(double[] point)
Deprecated. Compute the value of the linear equation at the current point |
double |
getValue(RealVector point)
Deprecated. Compute the value of the linear equation at the current point |
int |
hashCode()
Deprecated. |
private void |
readObject(ObjectInputStream ois)
Deprecated. Deserialize the instance. |
private void |
writeObject(ObjectOutputStream oos)
Deprecated. Serialize the instance. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final transient RealVector coefficients
private final double constantTerm
Constructor Detail |
---|
public LinearObjectiveFunction(double[] coefficients, double constantTerm)
coefficients
- The coefficients for the linear equation being optimizedconstantTerm
- The constant term of the linear equationpublic LinearObjectiveFunction(RealVector coefficients, double constantTerm)
coefficients
- The coefficients for the linear equation being optimizedconstantTerm
- The constant term of the linear equationMethod Detail |
---|
public RealVector getCoefficients()
public double getConstantTerm()
public double getValue(double[] point)
point
- point at which linear equation must be evaluated
public double getValue(RealVector point)
point
- point at which linear equation must be evaluated
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
private void writeObject(ObjectOutputStream oos) throws IOException
oos
- stream where object should be written
IOException
- if object cannot be written to streamprivate void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
ois
- stream from which the object should be read
ClassNotFoundException
- if a class in the stream cannot be found
IOException
- if object cannot be read from the stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |