|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.algorithm.template.MarkovDecisionProblem.DefaultTransition
public static class MarkovDecisionProblem.DefaultTransition
Default implementation of transition options for Markov decision processes.
Constructor Summary | |
---|---|
MarkovDecisionProblem.DefaultTransition(double probability,
double cost)
Deprecated. convenience constructor, prefer to use ValueFactory.valueOf(double) .. |
|
MarkovDecisionProblem.DefaultTransition(Scalar probability,
Real cost)
Create a new option 〈p,c〉. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares transition options. |
Real |
getCost()
Get the cost of taking the action leading to this transition. |
Scalar |
getProbability()
Get the transition probability. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface orbital.algorithm.template.TransitionModel.Transition |
---|
equals, hashCode |
Constructor Detail |
---|
public MarkovDecisionProblem.DefaultTransition(Scalar probability, Real cost)
probability
- the probability of reaching a state sʹ.cost
- the immediate cost of taking the action which took us to that state sʹ.public MarkovDecisionProblem.DefaultTransition(double probability, double cost)
ValueFactory.valueOf(double)
..
Method Detail |
---|
public int compareTo(java.lang.Object o)
TransitionModel.Transition
compareTo
in interface java.lang.Comparable
compareTo
in interface TransitionModel.Transition
public java.lang.String toString()
toString
in class java.lang.Object
public Scalar getProbability()
TransitionModel.Transition
getProbability
in interface TransitionModel.Transition
public Real getCost()
MarkovDecisionProblem.Transition
Note: Since c:S×A→R is a function, the cost should only depend on the action a taken, and the state s in which it was taken, not the actual outcome (which is unknown a priori). Otherwise, subset construction would not be applicable, etc.
getCost
in interface MarkovDecisionProblem.Transition
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |