Class LinearObjectiveFunction
java.lang.Object
org.apache.commons.math3.optimization.linear.LinearObjectiveFunction
- All Implemented Interfaces:
Serializable
Deprecated.
As of 3.1 (to be removed in 4.0).
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.
- Since:
- 2.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RealVector
Deprecated.Coefficients of the constraint (ci).private final double
Deprecated.Constant term of the linear equation.private static final long
Deprecated.Serializable version identifier. -
Constructor Summary
ConstructorsConstructorDescriptionLinearObjectiveFunction
(double[] coefficients, double constantTerm) Deprecated.LinearObjectiveFunction
(RealVector coefficients, double constantTerm) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Deprecated.Get the coefficients of the linear equation being optimized.double
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 pointdouble
getValue
(RealVector point) Deprecated.Compute the value of the linear equation at the current pointint
hashCode()
Deprecated.private void
Deprecated.Deserialize the instance.private void
Deprecated.Serialize the instance.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.Serializable version identifier.- See Also:
-
coefficients
Deprecated.Coefficients of the constraint (ci). -
constantTerm
private final double constantTermDeprecated.Constant term of the linear equation.
-
-
Constructor Details
-
LinearObjectiveFunction
public LinearObjectiveFunction(double[] coefficients, double constantTerm) Deprecated.- Parameters:
coefficients
- The coefficients for the linear equation being optimizedconstantTerm
- The constant term of the linear equation
-
LinearObjectiveFunction
Deprecated.- Parameters:
coefficients
- The coefficients for the linear equation being optimizedconstantTerm
- The constant term of the linear equation
-
-
Method Details
-
getCoefficients
Deprecated.Get the coefficients of the linear equation being optimized.- Returns:
- coefficients of the linear equation being optimized
-
getConstantTerm
public double getConstantTerm()Deprecated.Get the constant of the linear equation being optimized.- Returns:
- constant of the linear equation being optimized
-
getValue
public double getValue(double[] point) Deprecated.Compute the value of the linear equation at the current point- Parameters:
point
- point at which linear equation must be evaluated- Returns:
- value of the linear equation at the current point
-
getValue
Deprecated.Compute the value of the linear equation at the current point- Parameters:
point
- point at which linear equation must be evaluated- Returns:
- value of the linear equation at the current point
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
writeObject
Deprecated.Serialize the instance.- Parameters:
oos
- stream where object should be written- Throws:
IOException
- if object cannot be written to stream
-
readObject
Deprecated.Deserialize the instance.- Parameters:
ois
- stream from which the object should be read- Throws:
ClassNotFoundException
- if a class in the stream cannot be foundIOException
- if object cannot be read from the stream
-