setPURPOSESet function for PODMP (base type)
SYNOPSISfunction P=set(P,field,value)
DESCRIPTIONSet function for PODMP (base type) Allows to change some fields of the basic POMDP structure Possible fields to change are - gamma (discount factor) - name (name given to the POMDP. Used to generate output files). CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function P=set(P,field,value) 0002 % Set function for PODMP (base type) 0003 % 0004 % Allows to change some fields of the basic POMDP structure 0005 % 0006 % Possible fields to change are 0007 % - gamma (discount factor) 0008 % - name (name given to the POMDP. Used to generate output files). 0009 0010 switch field 0011 case 'gamma' 0012 P.gamma=value; 0013 case 'name' 0014 P.name=value; 0015 otherwise 0016 error('Unknown field in POMDP set'); 0017 end 0018 0019 |