|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.optimization.linear.LinearObjectiveFunction
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.
| Constructor Summary | |
|---|---|
LinearObjectiveFunction(double[] coefficients,
double constantTerm)
|
|
LinearObjectiveFunction(RealVector coefficients,
double constantTerm)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
RealVector |
getCoefficients()
Get the coefficients of the linear equation being optimized. |
double |
getConstantTerm()
Get the constant of the linear equation being optimized. |
double |
getValue(double[] point)
Compute the value of the linear equation at the current point |
double |
getValue(RealVector point)
Compute the value of the linear equation at the current point |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinearObjectiveFunction(double[] coefficients,
double constantTerm)
coefficients - The coefficients for the linear equation being optimizedconstantTerm - The constant term of the linear equation
public LinearObjectiveFunction(RealVector coefficients,
double constantTerm)
coefficients - The coefficients for the linear equation being optimizedconstantTerm - The constant term of the linear equation| Method 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 Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||