RMOL Logo  0.25.3
C++ library of Revenue Management and Optimisation classes and functions
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
BasConst.cpp
Go to the documentation of this file.
1 // //////////////////////////////////////////////////////////////////////
2 // Import section
3 // //////////////////////////////////////////////////////////////////////
7 
8 namespace RMOL {
9 
11  const stdair::AirlineCode_T DEFAULT_RMOL_SERVICE_AIRLINE_CODE = "BA";
12 
14  const double DEFAULT_RMOL_SERVICE_CAPACITY = 1.0;
15 
19 
23  const int DEFAULT_PRECISION = 10;
24 
26  const double DEFAULT_EPSILON = 0.0001;
27 
29  const double DEFAULT_STOPPING_CRITERION = 0.01;
30 
33 
39  FRAT5Curve_T oCurve;
40  // oCurve[63] = 1.4; oCurve[56] = 1.45;
41  // oCurve[49] = 1.5; oCurve[42] = 1.55; oCurve[35] = 1.6;
42  // oCurve[31] = 1.7; oCurve[27] = 1.8; oCurve[23] = 2.0;
43  // oCurve[19] = 2.3; oCurve[16] = 2.6; oCurve[13] = 3.0;
44  // oCurve[10] = 3.3; oCurve[7] = 3.4; oCurve[5] = 3.44;
45  // oCurve[3] = 3.47; oCurve[1] = 3.5;
46  oCurve[63] = 1.1; oCurve[56] = 1.11;
47  oCurve[49] = 1.17; oCurve[42] = 1.27;
48  oCurve[35] = 1.28; oCurve[31] = 1.28; oCurve[27] = 1.28;
49  oCurve[23] = 1.37; oCurve[19] = 1.37;
50  oCurve[16] = 1.6; oCurve[13] = 1.6;
51  oCurve[10] = 1.8; oCurve[7] = 1.8;
52  oCurve[5] = 2.23; oCurve[3] = 2.23;
53  oCurve[1] = 2.5;
54  // oCurve[63] = 1.05; oCurve[56] = 1.07;
55  // oCurve[49] = 1.09; oCurve[42] = 1.11; oCurve[35] = 1.14;
56  // oCurve[31] = 1.16; oCurve[27] = 1.18; oCurve[23] = 1.21;
57  // oCurve[19] = 1.24; oCurve[16] = 1.27; oCurve[13] = 1.3;
58  // oCurve[10] = 1.33; oCurve[7] = 1.37; oCurve[5] = 1.4;
59  // oCurve[3] = 1.45; oCurve[1] = 1.5;
60  // oCurve[63] = 1.4;
61  // oCurve[49] = 1.5; oCurve[35] = 1.6;
62  // oCurve[23] = 2.0; oCurve[16] = 2.6;
63  // oCurve[10] = 3.3; oCurve[5] = 3.44;
64  // oCurve[1] = 3.5;
65  return oCurve;
66  };
67 
69  const stdair::DCPList_T DEFAULT_DCP_LIST = DefaultDCPList::init();
70  stdair::DCPList_T DefaultDCPList::init() {
71  stdair::DCPList_T oDCPList;
72  oDCPList.push_back (63); oDCPList.push_back (49);
73  oDCPList.push_back (35); oDCPList.push_back (23);
74  oDCPList.push_back (16); oDCPList.push_back (10);
75  oDCPList.push_back (5); oDCPList.push_back (1);
76  oDCPList.push_back (0);
77  return oDCPList;
78  }
79 
80 }