|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorbital.algorithm.template.DynamicProgrammingOptimizingProblem
public abstract class DynamicProgrammingOptimizingProblem
Base hook class for problems solved by DynamicProgramming for optimization.
| Constructor Summary | |
|---|---|
DynamicProgrammingOptimizingProblem()
|
|
| Method Summary | |
|---|---|
abstract java.util.Collection |
getOptionsFor(int[] part)
Get the options available to optimize for the given part. |
double |
getPartialWeight(int[] part)
Get the partial weight corresponding to the part specification. |
java.lang.Object[] |
getPartialWeights()
Get the partial weights memorized analogue to partialSolutions. |
abstract Function |
getWeightingFor(int[] part)
Get an objective function. |
void |
init(java.lang.Object[] weights)
Initialize weights as the specified (possibly multidimensional) array of number-objects. |
java.lang.Object |
solve(int[] part,
java.lang.Object[] partialSolutions)
Solve the problem part using the partial solutions we already now. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface orbital.algorithm.template.DynamicProgrammingProblem |
|---|
getInitialPartialSolutions, isSolution, merge, nextPart |
| Constructor Detail |
|---|
public DynamicProgrammingOptimizingProblem()
| Method Detail |
|---|
public void init(java.lang.Object[] weights)
DynamicProgrammingProblem.getInitialPartialSolutions().
public double getPartialWeight(int[] part)
public java.lang.Object[] getPartialWeights()
public abstract java.util.Collection getOptionsFor(int[] part)
public abstract Function getWeightingFor(int[] part)
If the weighting never changes for this problem, consider using a single weighting instance instead of creating a new one on each call. This will increase efficiency.
The parameter passed to the function is the current situation of choices.
public java.lang.Object solve(int[] part,
java.lang.Object[] partialSolutions)
DynamicProgrammingProblem
solve in interface DynamicProgrammingProblemDynamicProgrammingProblem.nextPart()
|
Orbital library 1.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||