#include <stdio.h>
#include <stdlib.h>
#include "mdpCassandra.h"
#include "imm-reward.h"
#include "sparse-matrix.h"
#include "CPMemUtils.h"
Go to the source code of this file.
#define DOUBLE_DISPLAY_PRECISION 4 |
Definition at line 38 of file mdpCassandra.c.
#define EPSILON 0.00001 /* tolerance for sum of probs == 1 */ |
Definition at line 40 of file mdpCassandra.c.
void allocateIntermediateMDP | ( | ) |
Definition at line 199 of file mdpCassandra.c.
void checkAllocatedPointer | ( | void * | ptr | ) |
Definition at line 591 of file mdpCassandra.c.
void computeRewards | ( | ) |
Definition at line 319 of file mdpCassandra.c.
void convertMatrices | ( | ) |
Definition at line 366 of file mdpCassandra.c.
void copyBeliefState | ( | REAL_VALUE * | copy, |
REAL_VALUE * | pi | ||
) |
Definition at line 144 of file mdpCassandra.c.
void deallocateIntermediateMDP | ( | ) |
Definition at line 287 of file mdpCassandra.c.
void deallocateMDP | ( | ) |
Definition at line 504 of file mdpCassandra.c.
void displayBeliefState | ( | FILE * | file, |
REAL_VALUE * | pi | ||
) |
Definition at line 157 of file mdpCassandra.c.
void displayMDPSlice | ( | int | state | ) |
Definition at line 549 of file mdpCassandra.c.
void memoryExhaustedErrorHandler | ( | ) |
Definition at line 582 of file mdpCassandra.c.
REAL_VALUE* newBeliefState | ( | ) |
Definition at line 96 of file mdpCassandra.c.
int readMDP | ( | char * | filename | ) |
Definition at line 168 of file mdpCassandra.c.
int transformBeliefState | ( | REAL_VALUE * | pi, |
REAL_VALUE * | pi_hat, | ||
int | a, | ||
int | obs | ||
) |
Definition at line 101 of file mdpCassandra.c.
int verifyIntermediateMDP | ( | ) |
Definition at line 253 of file mdpCassandra.c.
int writeMDP | ( | char * | filename | ) |
Definition at line 446 of file mdpCassandra.c.
Definition at line 48 of file mdpCassandra.c.
Definition at line 92 of file mdpCassandra.c.
int gInitialState = INVALID_STATE |
Definition at line 93 of file mdpCassandra.c.
unsigned long GlobalMemLimit = 0 |
Definition at line 589 of file mdpCassandra.c.
int gNumActions = 0 |
Definition at line 57 of file mdpCassandra.c.
int gNumObservations = 0 |
Definition at line 58 of file mdpCassandra.c.
int gNumStates = 0 |
Definition at line 56 of file mdpCassandra.c.
Definition at line 44 of file mdpCassandra.c.
Definition at line 52 of file mdpCassandra.c.
Definition at line 71 of file mdpCassandra.c.
Definition at line 75 of file mdpCassandra.c.
Definition at line 73 of file mdpCassandra.c.
Definition at line 79 of file mdpCassandra.c.
Definition at line 83 of file mdpCassandra.c.
Definition at line 81 of file mdpCassandra.c.
char* value_type_str[] = VALUE_TYPE_STRINGS |
Definition at line 50 of file mdpCassandra.c.