@Deprecated public class LinearObjectiveFunction extends Object implements Serializable
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.
Constructor and Description |
---|
LinearObjectiveFunction(double[] coefficients,
double constantTerm)
Deprecated.
|
LinearObjectiveFunction(RealVector coefficients,
double constantTerm)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 equationpublic RealVector getCoefficients()
public double getConstantTerm()
public double getValue(double[] point)
point
- point at which linear equation must be evaluatedpublic double getValue(RealVector point)
point
- point at which linear equation must be evaluatedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.