|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsavi.alg.funcmin.StateFunction
public class StateFunction
State representing finding global minimum problem.
Field Summary | |
---|---|
protected double |
currentX
current value x in graph |
protected static double |
half
half of pixel size |
Constructor Summary | |
---|---|
StateFunction()
Creates a new instance of StateFunction |
Method Summary | |
---|---|
java.lang.Object |
clone()
Create new copy of StateFunction object. |
double |
fce(double x)
implemented function |
void |
findInitialState(double temp)
Initializes state. |
void |
findNextState(double temp)
Called when algorithm need to find next state. |
double |
getActualCost()
Count optimalization criterion. |
double |
getCurrentX()
Used for taking current x value (that means state of function). |
java.lang.String[] |
getSubmission()
Not implemented, Finding global minimum problem doesn't allow loading and saving submissions. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double currentX
protected static double half
Constructor Detail |
---|
public StateFunction()
Method Detail |
---|
public double fce(double x)
x
- value x of function
public void findInitialState(double temp)
findInitialState
in interface StateSkeleton
temp
- Starting temperaturepublic void findNextState(double temp)
findNextState
in interface StateSkeleton
temp
- actual temperaturepublic double getActualCost()
getActualCost
in interface StateSkeleton
public double getCurrentX()
public java.lang.Object clone()
clone
in interface StateSkeleton
clone
in class java.lang.Object
public java.lang.String[] getSubmission()
getSubmission
in interface StateSkeleton
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |