Defines | Functions | Variables
mdpCassandra.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "mdpCassandra.h"
#include "imm-reward.h"
#include "sparse-matrix.h"
#include "CPMemUtils.h"
Include dependency graph for mdpCassandra.c:

Go to the source code of this file.

Defines

#define DOUBLE_DISPLAY_PRECISION   4
#define EPSILON   0.00001 /* tolerance for sum of probs == 1 */

Functions

void allocateIntermediateMDP ()
void checkAllocatedPointer (void *ptr)
void computeRewards ()
void convertMatrices ()
void copyBeliefState (REAL_VALUE *copy, REAL_VALUE *pi)
void deallocateIntermediateMDP ()
void deallocateMDP ()
void displayBeliefState (FILE *file, REAL_VALUE *pi)
void displayMDPSlice (int state)
void memoryExhaustedErrorHandler ()
REAL_VALUEnewBeliefState ()
int readMDP (char *filename)
int transformBeliefState (REAL_VALUE *pi, REAL_VALUE *pi_hat, int a, int obs)
int verifyIntermediateMDP ()
int writeMDP (char *filename)

Variables

REAL_VALUE gDiscount = DEFAULT_DISCOUNT_FACTOR
REAL_VALUEgInitialBelief
int gInitialState = INVALID_STATE
unsigned long GlobalMemLimit = 0
int gNumActions = 0
int gNumObservations = 0
int gNumStates = 0
Problem_Type gProblemType = UNKNOWN_problem_type
Value_Type gValueType = DEFAULT_VALUE_TYPE
I_MatrixIP
I_Matrix IQ
I_MatrixIR
MatrixP
Matrix Q
MatrixR
char * value_type_str [] = VALUE_TYPE_STRINGS

Define Documentation

#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.


Function Documentation

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.

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.

Definition at line 582 of file mdpCassandra.c.

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.

Definition at line 253 of file mdpCassandra.c.

int writeMDP ( char *  filename)

Definition at line 446 of file mdpCassandra.c.


Variable Documentation

Definition at line 48 of file mdpCassandra.c.

Definition at line 92 of file mdpCassandra.c.

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.

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.

Definition at line 50 of file mdpCassandra.c.



appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:30