S - the solution typepublic interface IterativeMethod<S>
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
S |
search(S... initials)
Search for a solution that optimizes the objective function from the
given starting points.
|
void |
setInitials(S... initials)
Supply the starting points for the search.
|
java.lang.Object |
step()
Do the next iteration.
|
void setInitials(S... initials)
initials - the initial guessesjava.lang.Object step()
throws java.lang.Exception
java.lang.Exception - when an error occurs during the searchS search(S... initials) throws java.lang.Exception
#setInitials(S[]) and then
iteratively step().
It implements a default convergence criterion.initials - the initial guessesjava.lang.Exception - when an error occurs during the search