Eclipse SUMO - Simulation of Urban MObility
|
Cost calculation with c-logit or logit method. More...
#include <LogitCalculator.h>
Public Member Functions | |
void | calculateProbabilities (std::vector< R * > alternatives, const V *const veh, const SUMOTime time) |
calculate the probabilities in the logit model | |
int | getMaxRouteNumber () const |
bool | keepAllRoutes () const |
bool | keepRoute () const |
LogitCalculator (const double beta, const double gamma, const double theta) | |
Constructor. | |
void | setCosts (R *route, const double costs, const bool) const |
bool | skipRouteCalculation () const |
virtual | ~LogitCalculator () |
Destructor. | |
Static Public Member Functions | |
static void | cleanup () |
static RouteCostCalculator< R, E, V > & | getCalculator () |
Private Member Functions | |
double | getBetaForCLogit (const std::vector< R * > alternatives) const |
calculate the scaling factor in the logit model | |
double | getThetaForCLogit (const std::vector< R * > alternatives) const |
calculate the scaling factor in the logit model | |
LogitCalculator & | operator= (const LogitCalculator &s) |
invalidated assignment operator | |
Private Attributes | |
const double | myBeta |
logit beta - value | |
std::map< const R *, double > | myCommonalities |
The route commonality factors for c-logit. | |
const double | myGamma |
logit gamma - value | |
double | myKeepRouteProb |
Information whether the old route shall be kept. | |
bool | myKeepRoutes |
Information whether all routes should be saved. | |
int | myMaxRouteNumber |
The maximum route alternatives number. | |
bool | mySkipNewRoutes |
Information whether new routes shall be computed. | |
const double | myTheta |
logit theta - value | |
Static Private Attributes | |
static RouteCostCalculator * | myInstance = 0 |
Cost calculation with c-logit or logit method.
Definition at line 37 of file LogitCalculator.h.
|
inline |
Constructor.
Definition at line 40 of file LogitCalculator.h.
|
inlinevirtual |
Destructor.
Definition at line 44 of file LogitCalculator.h.
|
inlinevirtual |
calculate the probabilities in the logit model
Implements RouteCostCalculator< R, E, V >.
Definition at line 51 of file LogitCalculator.h.
References LogitCalculator< R, E, V >::getBetaForCLogit(), LogitCalculator< R, E, V >::getThetaForCLogit(), LogitCalculator< R, E, V >::myBeta, LogitCalculator< R, E, V >::myCommonalities, LogitCalculator< R, E, V >::myGamma, LogitCalculator< R, E, V >::myTheta, and STEPS2TIME.
|
inlinestaticinherited |
Definition at line 46 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myInstance.
Referenced by RONet::cleanup().
|
inlineprivate |
calculate the scaling factor in the logit model
Definition at line 91 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
staticinherited |
Definition at line 120 of file RouteCostCalculator.h.
References OptionsCont::getFloat(), OptionsCont::getOptions(), and OptionsCont::getString().
Referenced by RORouteDef::addAlternative(), RORouteDef::preComputeCurrentRoute(), and ROMAAssignments::sue().
|
inlineinherited |
Definition at line 56 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myMaxRouteNumber.
|
inlineprivate |
calculate the scaling factor in the logit model
Definition at line 103 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
inlineinherited |
Definition at line 60 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myKeepRoutes.
|
inlineinherited |
Definition at line 68 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myKeepRouteProb, and RandHelper::rand().
|
private |
invalidated assignment operator
|
inlinevirtual |
Implements RouteCostCalculator< R, E, V >.
Definition at line 46 of file LogitCalculator.h.
|
inlineinherited |
Definition at line 64 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::mySkipNewRoutes.
|
private |
logit beta - value
Definition at line 130 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
private |
The route commonality factors for c-logit.
Definition at line 139 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
private |
logit gamma - value
Definition at line 133 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
staticprivateinherited |
Definition at line 92 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::cleanup().
|
privateinherited |
Information whether the old route shall be kept.
Definition at line 104 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::keepRoute(), and RouteCostCalculator< R, E, V >::RouteCostCalculator().
|
privateinherited |
Information whether all routes should be saved.
Definition at line 98 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::keepAllRoutes(), and RouteCostCalculator< R, E, V >::RouteCostCalculator().
|
privateinherited |
The maximum route alternatives number.
Definition at line 95 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::getMaxRouteNumber(), and RouteCostCalculator< R, E, V >::RouteCostCalculator().
|
privateinherited |
Information whether new routes shall be computed.
Definition at line 101 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::RouteCostCalculator(), and RouteCostCalculator< R, E, V >::skipRouteCalculation().
|
private |
logit theta - value
Definition at line 136 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().