Learn R Programming

pomdp (version 1.0.0)

write_POMDP: Read and write a POMDP Model to a File in POMDP Format

Description

Reads and write a POMDP file suitable for the pomdp-solve program. Note: read POMDP files are intended to be used in solve_POMDP() and do not support all auxiliary functions. Fields like the transition matrix, the observation matrix and the reward structure are not parsed.

Usage

write_POMDP(x, file, digits = 7)

read_POMDP(file)

Arguments

x

an object of class POMDP.

file

a file name.

digits

precision for writing numbers (digits after the decimal point).

Value

read_POMDP() returns a POMDP object.

References

POMDP solver website: http://www.pomdp.org

See Also

Other POMDP: POMDP(), plot_belief_space(), sample_belief_space(), simulate_POMDP(), solve_POMDP(), solve_SARSOP(), transition_matrix(), update_belief()

Examples

Run this code
# NOT RUN {
data(Tiger)

## show the POMDP file that would be written.
write_POMDP(Tiger, file = stdout())
# }

Run the code above in your browser using DataLab