#include <assert.h>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/program_options.hpp>
#include <rmol/RMOL_Service.hpp>
#include <rmol/config/rmol-paths.hpp>
Go to the source code of this file.
Functions | |
const std::string | K_RMOL_DEFAULT_LOG_FILENAME ("rmol.log") |
const std::string | K_RMOL_DEFAULT_INPUT_FILENAME ("class.csv") |
void | initDefaultValuesForSellupProbabilityVector (RMOL::SellupProbabilityVector_T &ioSellUpProbabilityVector) |
template<class T > | |
std::ostream & | operator<< (std::ostream &os, const std::vector< T > &v) |
int | readConfiguration (int argc, char *argv[], int &ioRandomDraws, double &ioCapacity, RMOL::SellupProbabilityVector_T &ioSellupProbabilityVector, short &ioMethod, std::string &ioInputFilename, std::string &ioLogFilename) |
int | main (int argc, char *argv[]) |
Variables | |
const int | K_RMOL_DEFAULT_RANDOM_DRAWS = 100000 |
const double | K_RMOL_DEFAULT_CAPACITY = 500.0 |
const short | K_RMOL_DEFAULT_METHOD = 0 |
const int | K_RMOL_EARLY_RETURN_STATUS = 99 |
const std::string K_RMOL_DEFAULT_LOG_FILENAME | ( | "rmol.log" | ) |
Default name and location for the log file.
Referenced by readConfiguration().
const std::string K_RMOL_DEFAULT_INPUT_FILENAME | ( | "class.csv" | ) |
Default name and location for the (CSV) input file.
Referenced by readConfiguration().
void initDefaultValuesForSellupProbabilityVector | ( | RMOL::SellupProbabilityVector_T & | ioSellUpProbabilityVector | ) |
Fill a vector of default sell-up probability values.
Definition at line 47 of file rmol.cpp.
Referenced by readConfiguration().
std::ostream& operator<< | ( | std::ostream & | os, | |
const std::vector< T > & | v | |||
) | [inline] |
int readConfiguration | ( | int | argc, | |
char * | argv[], | |||
int & | ioRandomDraws, | |||
double & | ioCapacity, | |||
RMOL::SellupProbabilityVector_T & | ioSellupProbabilityVector, | |||
short & | ioMethod, | |||
std::string & | ioInputFilename, | |||
std::string & | ioLogFilename | |||
) |
Read and parse the command line options.
Definition at line 67 of file rmol.cpp.
References initDefaultValuesForSellupProbabilityVector(), K_RMOL_DEFAULT_CAPACITY, K_RMOL_DEFAULT_INPUT_FILENAME(), K_RMOL_DEFAULT_LOG_FILENAME(), K_RMOL_DEFAULT_METHOD, K_RMOL_DEFAULT_RANDOM_DRAWS, K_RMOL_EARLY_RETURN_STATUS, PACKAGE_NAME, PACKAGE_VERSION, and PREFIXDIR.
Referenced by main().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 179 of file rmol.cpp.
References RMOL::RMOL_Service::addBucket(), RMOL::RMOL_Service::buildContextForMC(), RMOL::RMOL_Service::heuristicOptimisationByEmsr(), RMOL::RMOL_Service::heuristicOptimisationByEmsrA(), RMOL::RMOL_Service::heuristicOptimisationByEmsrAwithSellup(), RMOL::RMOL_Service::heuristicOptimisationByEmsrB(), K_RMOL_EARLY_RETURN_STATUS, RMOL::RMOL_Service::legOptimisationByMC(), RMOL::RMOL_Service::optimalOptimisationByDP(), RMOL::RMOL_Service::optimalOptimisationByMCIntegration(), readConfiguration(), RMOL::RMOL_Service::readFromInputFile(), and RMOL::RMOL_Service::setUpStudyStatManager().
const int K_RMOL_DEFAULT_RANDOM_DRAWS = 100000 |
Default number of random draws to be generated (best if over 100).
Definition at line 25 of file rmol.cpp.
Referenced by readConfiguration().
const double K_RMOL_DEFAULT_CAPACITY = 500.0 |
Default value for the capacity of the resource (e.g., a flight cabin).
Definition at line 28 of file rmol.cpp.
Referenced by readConfiguration().
const short K_RMOL_DEFAULT_METHOD = 0 |
Default probability that a demand group buys the next higher fare products when the products which they came for are not available. Default name and location for the Revenue Management method to be used.
Definition at line 44 of file rmol.cpp.
Referenced by readConfiguration().
const int K_RMOL_EARLY_RETURN_STATUS = 99 |
Early return status (so that it can be differentiated from an error).
Definition at line 64 of file rmol.cpp.
Referenced by main(), and readConfiguration().
Generated on Sun Mar 7 13:11:11 2010 for RMOL by Doxygen 1.6.1