RMOL Logo Get Revenue Management Optimisation Library at SourceForge.net. Fast, secure and Free Open Source software downloads

QEquivalentBookingCalculator.cpp

Go to the documentation of this file.
00001 // //////////////////////////////////////////////////////////////////////
00002 // Import section
00003 // //////////////////////////////////////////////////////////////////////
00004 // STL
00005 #include <cmath>
00006 // RMOL Bom
00007 #include <rmol/bom/Bucket.hpp>
00008 #include <rmol/bom/BucketHolder.hpp>
00009 #include <rmol/bom/QEquivalentBookingCalculator.hpp>
00010 
00011 namespace RMOL {
00012 
00013   // //////////////////////////////////////////////////////////////////////
00014   void QEquivalentBookingCalculator::calculateQEquivalentBooking 
00015   (HistoricalBookingHolderHolder& iHistoricalBookingHolderHolder, 
00016    SellupProbabilityVector_T& iSellupProbabilityVector,
00017    HolderOfQEquivalentBookingsPerSimilarFlight_T& 
00018                             oHolderOfQEquivalentBookingsPerSimilarFlight) {
00019 
00020 //     // Get the number of Buckets
00021 //     const double nbOfBuckets = ioBucketHolder.getSize();
00022 
00023 //     for (int j = 0; 
00024 //          j < iHistoricalBookingHolderHolder.getNumberOfSimilarFlights();
00025 //          j++) {
00026 
00027 //       HistoricalBookingHolder& lHistoricalBookingHolder = 
00028 //                                       iHistoricalBookingHolderHolder.at(j);
00029 
00030 //       double qEquivalentBooking = 0.0;
00031 //       for (short k = 0; k < nbOfBuckets; k++) {
00032 //         HistoricalBooking& lHistoricalBooking = 
00033 //                    lCurrentHistoricalBookingVector.getHistoricalBooking(k);
00034 //         const double& lHBValue = lHistoricalBooking.getNumberOfBookings();
00035 //         qEquivqlentBooking = qEquivqlentBooking + 
00036 //                              lHBValue * lSellupProbabilityVector[k];
00037 //       }
00038 
00039 //       oQEquivalentBookingsPerSimilarFlight.push_back(qEquivqlentBooking);
00040 //     }
00041 
00042 // //     SUM_{buckets} histBooking_{bucket i} / ProbSellup_{bucket i}
00043 // //             where
00044 // //               ProbSellup_{bucket i} =
00045 // //               EXP(-sellupfactor*(yield_{bucket i}/lowest yield_{buckets}))
00046 
00047 
00048   }
00049 }
SourceForge Logo

Generated on Sat Sep 26 13:13:04 2009 for RMOL by Doxygen 1.6.1