Institut de Robòtica i Informàtica Industrial

GetHallwayParameters

PURPOSE ^

The hallway discrete POMDP.

SYNOPSIS ^

function [POMDP P]=GetHallwayParameters

DESCRIPTION ^

   The hallway discrete POMDP.

   Exemple of how to define the POMDP and the parameters for a discrete
   POMDP (the ususal type of POMDP in the literature).
   
   The POMDP is read from a file and the parameters are directly set here.
   The outputs of this function can be latter used to solve the problem
   using:

      [POMDP P B V Val Alpha t]=TestOne(POMP,P);

   However, TestOne can be directly called as

      [POMDP P B V Val Alpha t]=TestOne('Hallway');

   In this case TestOne directly calls GetHallwayParameters to get the
   POMDP and the P objects.

   All problems (and their parameters) should be encoded in a file like
   this one.

   See also ReadDiscretePOMDPData, TestOne, POMDP, GetTest1Parameters.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [POMDP P]=GetHallwayParameters
0002 %   The hallway discrete POMDP.
0003 %
0004 %   Exemple of how to define the POMDP and the parameters for a discrete
0005 %   POMDP (the ususal type of POMDP in the literature).
0006 %
0007 %   The POMDP is read from a file and the parameters are directly set here.
0008 %   The outputs of this function can be latter used to solve the problem
0009 %   using:
0010 %
0011 %      [POMDP P B V Val Alpha t]=TestOne(POMP,P);
0012 %
0013 %   However, TestOne can be directly called as
0014 %
0015 %      [POMDP P B V Val Alpha t]=TestOne('Hallway');
0016 %
0017 %   In this case TestOne directly calls GetHallwayParameters to get the
0018 %   POMDP and the P objects.
0019 %
0020 %   All problems (and their parameters) should be encoded in a file like
0021 %   this one.
0022 %
0023 %   See also ReadDiscretePOMDPData, TestOne, POMDP, GetTest1Parameters.
0024 
0025   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0026   % Define the POMDP
0027     POMDP=DS_DO_DA_POMDP('Data/hallway');
0028   
0029   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0030   % Define the parameters for sampling beliefs
0031     P.start=DBelief(UniformDistribution(POMDP));
0032     P.nBeliefs=1000;
0033     P.dBelief=0.1;
0034     P.stepsXtrial=50;
0035     P.rMin=-inf;
0036     P.rMax=inf;
0037   
0038   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0039   % Define the parameters for assesing the solution quality
0040     P.maxTime=25;
0041     P.stTime=2;
0042     P.numTrials=100;
0043   
0044   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0045   % Define the parameters for solving
0046     P.stopCriteria=@(n,t,vc)(t>P.maxTime);


Institut de Robòtica i Informàtica Industrial

Generated on Wed 05-Aug-2009 15:05:21 by m2html © 2003