public class LinearObjectiveFunction extends Object implements MultivariateFunction, OptimizationData, 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[] coefficientsIn,
double constantTermIn) |
LinearObjectiveFunction(RealVector coefficientsIn,
double constantTermIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
RealVector |
getCoefficients()
Gets the coefficients of the linear equation being optimized.
|
double |
getConstantTerm()
Gets the constant of the linear equation being optimized.
|
int |
hashCode() |
double |
value(double[] point)
Computes the value of the linear equation at the current point.
|
double |
value(RealVector point)
Computes the value of the linear equation at the current point.
|
public LinearObjectiveFunction(double[] coefficientsIn, double constantTermIn)
coefficientsIn
- Coefficients for the linear equation being optimized.constantTermIn
- Constant term of the linear equation.public LinearObjectiveFunction(RealVector coefficientsIn, double constantTermIn)
coefficientsIn
- Coefficients for the linear equation being optimized.constantTermIn
- Constant term of the linear equation.public RealVector getCoefficients()
public double getConstantTerm()
public double value(double[] point)
value
in interface MultivariateFunction
point
- Point at which linear equation must be evaluated.public double value(RealVector point)
point
- Point at which linear equation must be evaluated.Copyright © 2019 CNES. All rights reserved.