\hypertarget{classpomdp__solver_1_1PMC}{}\doxysection{pomdp\+\_\+solver.\+PMC Class Reference}
\label{classpomdp__solver_1_1PMC}\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}}


Class to explire and export a p\+MC model.  


\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_a17646b90a5a140c3211d8061486786ff}\label{classpomdp__solver_1_1PMC_a17646b90a5a140c3211d8061486786ff}} 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_a17646b90a5a140c3211d8061486786ff}{\+\_\+\+\_\+init\+\_\+\+\_\+}} (self, \mbox{\hyperlink{classpomdp__solver_1_1PMC_a8c6581ed3bab1bcad4b9290639c35090}{model}})
\begin{DoxyCompactList}\small\item\em The constuctor. \end{DoxyCompactList}\item 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_ae2ef1751da8866d772d84393ff76df02}{instantiate\+\_\+parameters}} (self, parameter\+\_\+values)
\begin{DoxyCompactList}\small\item\em Instantiate a p\+MC. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_a4e4af5ccb9cf53d12e333d3197988823}\label{classpomdp__solver_1_1PMC_a4e4af5ccb9cf53d12e333d3197988823}} 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_a4e4af5ccb9cf53d12e333d3197988823}{inspect\+\_\+model}} (self)
\begin{DoxyCompactList}\small\item\em Inspect model for invalid or missing components. \end{DoxyCompactList}\item 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_a3b348d08ef2f3622925a55117a759310}{has\+\_\+transition\+\_\+matrix}} (self)
\begin{DoxyCompactList}\small\item\em Check if the p\+MC model has a transition matrix. \end{DoxyCompactList}\item 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_aec958a22be696d820e65e48a81b34d37}{has\+\_\+state\+\_\+labels}} (self)
\begin{DoxyCompactList}\small\item\em Check if the p\+MC model has a state labels. \end{DoxyCompactList}\item 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_a4446c945680c20c71f7c73262c1537d2}{has\+\_\+reward\+\_\+model}} (self)
\begin{DoxyCompactList}\small\item\em Check if the p\+MC model has a reward model. \end{DoxyCompactList}\item 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_a1791a9ecc0967a93a8b5773e4bb4487b}{has\+\_\+parameters}} (self)
\begin{DoxyCompactList}\small\item\em Check if the p\+MC model has uninstantiated parameters. \end{DoxyCompactList}\item 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_aad74ed86b0d4b851efacef32d3fab0bb}{get\+\_\+model\+\_\+type}} (self)
\begin{DoxyCompactList}\small\item\em Get the p\+MC model type. \end{DoxyCompactList}\item 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_abdac53ecfcedc54f65e05e2baf417e3f}{get\+\_\+states}} (self)
\begin{DoxyCompactList}\small\item\em Get the states of the p\+MC model. \end{DoxyCompactList}\item 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_a4d3a5bfd3405b2d8ca6d31cb4cd62dd1}{get\+\_\+nr\+\_\+states}} (self)
\begin{DoxyCompactList}\small\item\em Get the number of states in the p\+MC model. \end{DoxyCompactList}\item 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_a180f81faadbcfe3658f6fa014d7fe742}{get\+\_\+state\+\_\+labels}} (self)
\begin{DoxyCompactList}\small\item\em Get the state labels of the p\+MC model. \end{DoxyCompactList}\item 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_af2ebbff31a5a6b020c24e6a14397c43e}{get\+\_\+reward\+\_\+models}} (self)
\begin{DoxyCompactList}\small\item\em Get the reward model of the p\+MC model. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_af13667c28138eb74abe4404be4b67ca7}\label{classpomdp__solver_1_1PMC_af13667c28138eb74abe4404be4b67ca7}} 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_af13667c28138eb74abe4404be4b67ca7}{print\+\_\+model\+\_\+type}} (self)
\begin{DoxyCompactList}\small\item\em Print the model type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_aaf403a403246e3c27492f71a4c774851}\label{classpomdp__solver_1_1PMC_aaf403a403246e3c27492f71a4c774851}} 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_aaf403a403246e3c27492f71a4c774851}{print\+\_\+nr\+\_\+states}} (self)
\begin{DoxyCompactList}\small\item\em Print the number of states. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_a36689346f0163972774b983db3486d50}\label{classpomdp__solver_1_1PMC_a36689346f0163972774b983db3486d50}} 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_a36689346f0163972774b983db3486d50}{print\+\_\+actions}} (self)
\begin{DoxyCompactList}\small\item\em Print the actions. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_af021a1ee082b522e04a496baf8e76780}\label{classpomdp__solver_1_1PMC_af021a1ee082b522e04a496baf8e76780}} 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_af021a1ee082b522e04a496baf8e76780}{print\+\_\+transitions}} (self)
\begin{DoxyCompactList}\small\item\em Print the transitions of the model. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_aa474f2cdca2348580d9a076fa60fda87}\label{classpomdp__solver_1_1PMC_aa474f2cdca2348580d9a076fa60fda87}} 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_aa474f2cdca2348580d9a076fa60fda87}{print\+\_\+rewards}} (self)
\begin{DoxyCompactList}\small\item\em Print the reward model. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_ae87d770b900c2cfc55922d50a259680b}\label{classpomdp__solver_1_1PMC_ae87d770b900c2cfc55922d50a259680b}} 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_ae87d770b900c2cfc55922d50a259680b}{print\+\_\+state\+\_\+reward}} (self, reward)
\begin{DoxyCompactList}\small\item\em Print the state rewards. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_ae964d4c19f4d1c0321710cd5ffb1072d}\label{classpomdp__solver_1_1PMC_ae964d4c19f4d1c0321710cd5ffb1072d}} 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_ae964d4c19f4d1c0321710cd5ffb1072d}{print\+\_\+state\+\_\+action\+\_\+reward}} (self, reward)
\begin{DoxyCompactList}\small\item\em Print the state action rewards. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_afe4c90930a7ef0e6807b458d0d16c76d}\label{classpomdp__solver_1_1PMC_afe4c90930a7ef0e6807b458d0d16c76d}} 
def \mbox{\hyperlink{classpomdp__solver_1_1PMC_afe4c90930a7ef0e6807b458d0d16c76d}{export\+\_\+to\+\_\+drn}} (self, file)
\begin{DoxyCompactList}\small\item\em Export the p\+MC model to a DRN format file. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classpomdp__solver_1_1PMC_a8c6581ed3bab1bcad4b9290639c35090}{model}}
\begin{DoxyCompactList}\small\item\em The p\+MC model. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_a5ae0a938ea1f2019b327cacab24f2814}\label{classpomdp__solver_1_1PMC_a5ae0a938ea1f2019b327cacab24f2814}} 
\mbox{\hyperlink{classpomdp__solver_1_1PMC_a5ae0a938ea1f2019b327cacab24f2814}{nr\+\_\+parameters}}
\begin{DoxyCompactList}\small\item\em Number of parameters of the p\+MC model. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Class to explire and export a p\+MC model. 

Takes a p\+MC model as an argument that is returned by the buil\+\_\+pmc function of the \mbox{\hyperlink{classpomdp__solver_1_1POMDP}{POMDP}} class. 

\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_aad74ed86b0d4b851efacef32d3fab0bb}\label{classpomdp__solver_1_1PMC_aad74ed86b0d4b851efacef32d3fab0bb}} 
\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}!get\_model\_type@{get\_model\_type}}
\index{get\_model\_type@{get\_model\_type}!pomdp\_solver.PMC@{pomdp\_solver.PMC}}
\doxysubsubsection{\texorpdfstring{get\_model\_type()}{get\_model\_type()}}
{\footnotesize\ttfamily def pomdp\+\_\+solver.\+PMC.\+get\+\_\+model\+\_\+type (\begin{DoxyParamCaption}\item[{}]{self }\end{DoxyParamCaption})}



Get the p\+MC model type. 

\begin{DoxyReturn}{Returns}
Model type. 
\end{DoxyReturn}
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_a4d3a5bfd3405b2d8ca6d31cb4cd62dd1}\label{classpomdp__solver_1_1PMC_a4d3a5bfd3405b2d8ca6d31cb4cd62dd1}} 
\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}!get\_nr\_states@{get\_nr\_states}}
\index{get\_nr\_states@{get\_nr\_states}!pomdp\_solver.PMC@{pomdp\_solver.PMC}}
\doxysubsubsection{\texorpdfstring{get\_nr\_states()}{get\_nr\_states()}}
{\footnotesize\ttfamily def pomdp\+\_\+solver.\+PMC.\+get\+\_\+nr\+\_\+states (\begin{DoxyParamCaption}\item[{}]{self }\end{DoxyParamCaption})}



Get the number of states in the p\+MC model. 

\begin{DoxyReturn}{Returns}
Number of states. 
\end{DoxyReturn}
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_af2ebbff31a5a6b020c24e6a14397c43e}\label{classpomdp__solver_1_1PMC_af2ebbff31a5a6b020c24e6a14397c43e}} 
\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}!get\_reward\_models@{get\_reward\_models}}
\index{get\_reward\_models@{get\_reward\_models}!pomdp\_solver.PMC@{pomdp\_solver.PMC}}
\doxysubsubsection{\texorpdfstring{get\_reward\_models()}{get\_reward\_models()}}
{\footnotesize\ttfamily def pomdp\+\_\+solver.\+PMC.\+get\+\_\+reward\+\_\+models (\begin{DoxyParamCaption}\item[{}]{self }\end{DoxyParamCaption})}



Get the reward model of the p\+MC model. 

\begin{DoxyReturn}{Returns}
reward model. 
\end{DoxyReturn}
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_a180f81faadbcfe3658f6fa014d7fe742}\label{classpomdp__solver_1_1PMC_a180f81faadbcfe3658f6fa014d7fe742}} 
\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}!get\_state\_labels@{get\_state\_labels}}
\index{get\_state\_labels@{get\_state\_labels}!pomdp\_solver.PMC@{pomdp\_solver.PMC}}
\doxysubsubsection{\texorpdfstring{get\_state\_labels()}{get\_state\_labels()}}
{\footnotesize\ttfamily def pomdp\+\_\+solver.\+PMC.\+get\+\_\+state\+\_\+labels (\begin{DoxyParamCaption}\item[{}]{self }\end{DoxyParamCaption})}



Get the state labels of the p\+MC model. 

\begin{DoxyReturn}{Returns}
List of state labels. 
\end{DoxyReturn}
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_abdac53ecfcedc54f65e05e2baf417e3f}\label{classpomdp__solver_1_1PMC_abdac53ecfcedc54f65e05e2baf417e3f}} 
\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}!get\_states@{get\_states}}
\index{get\_states@{get\_states}!pomdp\_solver.PMC@{pomdp\_solver.PMC}}
\doxysubsubsection{\texorpdfstring{get\_states()}{get\_states()}}
{\footnotesize\ttfamily def pomdp\+\_\+solver.\+PMC.\+get\+\_\+states (\begin{DoxyParamCaption}\item[{}]{self }\end{DoxyParamCaption})}



Get the states of the p\+MC model. 

\begin{DoxyReturn}{Returns}
List of states. 
\end{DoxyReturn}
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_a1791a9ecc0967a93a8b5773e4bb4487b}\label{classpomdp__solver_1_1PMC_a1791a9ecc0967a93a8b5773e4bb4487b}} 
\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}!has\_parameters@{has\_parameters}}
\index{has\_parameters@{has\_parameters}!pomdp\_solver.PMC@{pomdp\_solver.PMC}}
\doxysubsubsection{\texorpdfstring{has\_parameters()}{has\_parameters()}}
{\footnotesize\ttfamily def pomdp\+\_\+solver.\+PMC.\+has\+\_\+parameters (\begin{DoxyParamCaption}\item[{}]{self }\end{DoxyParamCaption})}



Check if the p\+MC model has uninstantiated parameters. 

\begin{DoxyReturn}{Returns}
Boolean. 
\end{DoxyReturn}
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_a4446c945680c20c71f7c73262c1537d2}\label{classpomdp__solver_1_1PMC_a4446c945680c20c71f7c73262c1537d2}} 
\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}!has\_reward\_model@{has\_reward\_model}}
\index{has\_reward\_model@{has\_reward\_model}!pomdp\_solver.PMC@{pomdp\_solver.PMC}}
\doxysubsubsection{\texorpdfstring{has\_reward\_model()}{has\_reward\_model()}}
{\footnotesize\ttfamily def pomdp\+\_\+solver.\+PMC.\+has\+\_\+reward\+\_\+model (\begin{DoxyParamCaption}\item[{}]{self }\end{DoxyParamCaption})}



Check if the p\+MC model has a reward model. 

\begin{DoxyReturn}{Returns}
Boolean. 
\end{DoxyReturn}
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_aec958a22be696d820e65e48a81b34d37}\label{classpomdp__solver_1_1PMC_aec958a22be696d820e65e48a81b34d37}} 
\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}!has\_state\_labels@{has\_state\_labels}}
\index{has\_state\_labels@{has\_state\_labels}!pomdp\_solver.PMC@{pomdp\_solver.PMC}}
\doxysubsubsection{\texorpdfstring{has\_state\_labels()}{has\_state\_labels()}}
{\footnotesize\ttfamily def pomdp\+\_\+solver.\+PMC.\+has\+\_\+state\+\_\+labels (\begin{DoxyParamCaption}\item[{}]{self }\end{DoxyParamCaption})}



Check if the p\+MC model has a state labels. 

\begin{DoxyReturn}{Returns}
Boolean. 
\end{DoxyReturn}
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_a3b348d08ef2f3622925a55117a759310}\label{classpomdp__solver_1_1PMC_a3b348d08ef2f3622925a55117a759310}} 
\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}!has\_transition\_matrix@{has\_transition\_matrix}}
\index{has\_transition\_matrix@{has\_transition\_matrix}!pomdp\_solver.PMC@{pomdp\_solver.PMC}}
\doxysubsubsection{\texorpdfstring{has\_transition\_matrix()}{has\_transition\_matrix()}}
{\footnotesize\ttfamily def pomdp\+\_\+solver.\+PMC.\+has\+\_\+transition\+\_\+matrix (\begin{DoxyParamCaption}\item[{}]{self }\end{DoxyParamCaption})}



Check if the p\+MC model has a transition matrix. 

\begin{DoxyReturn}{Returns}
Boolean. 
\end{DoxyReturn}
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_ae2ef1751da8866d772d84393ff76df02}\label{classpomdp__solver_1_1PMC_ae2ef1751da8866d772d84393ff76df02}} 
\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}!instantiate\_parameters@{instantiate\_parameters}}
\index{instantiate\_parameters@{instantiate\_parameters}!pomdp\_solver.PMC@{pomdp\_solver.PMC}}
\doxysubsubsection{\texorpdfstring{instantiate\_parameters()}{instantiate\_parameters()}}
{\footnotesize\ttfamily def pomdp\+\_\+solver.\+PMC.\+instantiate\+\_\+parameters (\begin{DoxyParamCaption}\item[{}]{self,  }\item[{}]{parameter\+\_\+values }\end{DoxyParamCaption})}



Instantiate a p\+MC. 


\begin{DoxyParams}{Parameters}
{\em parameter\+\_\+values} & List of values to instantiate parameters. \\
\hline
\end{DoxyParams}


\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{classpomdp__solver_1_1PMC_a8c6581ed3bab1bcad4b9290639c35090}\label{classpomdp__solver_1_1PMC_a8c6581ed3bab1bcad4b9290639c35090}} 
\index{pomdp\_solver.PMC@{pomdp\_solver.PMC}!model@{model}}
\index{model@{model}!pomdp\_solver.PMC@{pomdp\_solver.PMC}}
\doxysubsubsection{\texorpdfstring{model}{model}}
{\footnotesize\ttfamily pomdp\+\_\+solver.\+PMC.\+model}



The p\+MC model. 

Collect the parameters.

Check if the number of parameters equals the number of values.

Create a dictionary of parameters to values

Instatiate the model 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
src/pomdp\+\_\+solver.\+py\end{DoxyCompactItemize}
