|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.rsl.jpop.FunctionOptimizer
public class FunctionOptimizer
Nested Class Summary | |
---|---|
static class |
FunctionOptimizer.OptimizationMode
|
static class |
FunctionOptimizer.TerminationCode
Termination codes ITRMCD = 0: Optimal solution found ITRMCD = 1: Terminated with gradient small, X is probably optimal ITRMCD = 2: Terminated with stepsize small, X is probably optimal ITRMCD = 3: Lower point cannot be found, X is probably optimal ITRMCD = 4: Iteration limit (150) exceeded ITRMCD = 5: Too many large steps, function may be unbounded |
Constructor Summary | |
---|---|
FunctionOptimizer()
|
|
FunctionOptimizer(int dimension)
|
Method Summary | |
---|---|
double |
getFunctionAtOptimum()
|
double[] |
getGradientAtOptimum()
|
double[][] |
getHessianAtOptimum()
|
FunctionOptimizer.OptimizationMode |
getOptimizationMode()
|
double[] |
getOptimum()
|
FunctionOptimizer.TerminationCode |
getTerminationCode()
returns the TerminationCode of the Optimization process. |
double[] |
optimizeFunction(OptimizableFunction function)
Method will optimize the given function using the current settings of the FunctionOptimizer. |
void |
setDimension(int dimension)
|
void |
setFunctionAssembler(FunctionAssembler assembler)
Sets a new FunctionAssembler for the optimization process. |
void |
setFunctionController(FunctionController controller)
Sets a new FunctionController. |
void |
setInitialX(double[] x)
|
void |
setOptimizationMode(FunctionOptimizer.OptimizationMode optimizationMode)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctionOptimizer(int dimension)
public FunctionOptimizer()
Method Detail |
---|
public void setFunctionAssembler(FunctionAssembler assembler)
assembler
- public void setFunctionController(FunctionController controller)
controller
- public double[] optimizeFunction(OptimizableFunction function)
function
-
public void setDimension(int dimension)
public void setInitialX(double[] x)
public double[] getOptimum()
public double[] getGradientAtOptimum()
public double getFunctionAtOptimum()
public double[][] getHessianAtOptimum()
public FunctionOptimizer.OptimizationMode getOptimizationMode()
public void setOptimizationMode(FunctionOptimizer.OptimizationMode optimizationMode)
optimizationMode
- the optimizationMode to setpublic FunctionOptimizer.TerminationCode getTerminationCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |