|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorbital.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.ComparablecompareTo in interface TransitionModel.Transitionpublic java.lang.String toString()
toString in class java.lang.Objectpublic Scalar getProbability()
TransitionModel.Transition
getProbability in interface TransitionModel.Transitionpublic Real getCost()
MarkovDecisionProblem.TransitionNote: 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.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||