MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
Globals.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _GLOBALS_H_
30
#define _GLOBALS_H_ 1
31
32
#include <vector>
33
#include <cmath>
34
#include <iostream>
35
#include "versions.h"
36
#include <limits.h>
37
39
namespace
Globals {
40
41
#define INDEX_MAX UINT_MAX
42
44
typedef
unsigned
int
Index
;
46
typedef
unsigned
long
long
int
LIndex
;
47
48
/* constants */
49
51
53
const
unsigned
int
MAXHORIZON
=999999;
54
56
59
const
double
PROB_PRECISION
=1e-8;
61
const
double
REWARD_PRECISION
=1e-8;
62
63
bool
EqualProbability
(
double
p1,
double
p2);
64
bool
EqualReward
(
double
r1,
double
r2);
65
67
const
Index
INITIAL_JOHI
=0;
69
const
Index
INITIAL_JAOHI
=0;
70
72
enum
reward_t
{
REWARD
,
COST
};
73
74
}
75
76
using namespace
Globals;
77
78
//Frans: should not matter if NDEBUG is defined?
79
//http://lists.boost.org/MailArchives/ublas/2007/02/1764.php
80
// Tell Boost Ublas to not use exceptions for speed reasons.
81
//#define BOOST_UBLAS_NO_EXCEPTIONS 1
82
83
84
#include "
PrintTools.h
"
85
using namespace
PrintTools;
86
87
#include "
E.h
"
88
#include "
EInvalidIndex.h
"
89
90
#endif
/* !_GLOBALS_H_ */
91
92
93
// Local Variables: ***
94
// mode:c++ ***
95
// End: ***
src
base
Globals.h
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2