![]() |
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 More... | |
| int | getMaxRouteNumber () const |
| bool | keepRoutes () const |
| LogitCalculator (const double beta, const double gamma, const double theta) | |
| Constructor. More... | |
| void | setCosts (R *route, const double costs, const bool) const |
| bool | skipRouteCalculation () const |
| virtual | ~LogitCalculator () |
| Destructor. More... | |
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 More... | |
| double | getThetaForCLogit (const std::vector< R * > alternatives) const |
| calculate the scaling factor in the logit model More... | |
| LogitCalculator & | operator= (const LogitCalculator &s) |
| invalidated assignment operator More... | |
Private Attributes | |
| const double | myBeta |
| logit beta - value More... | |
| std::map< const R *, double > | myCommonalities |
| The route commonality factors for c-logit. More... | |
| const double | myGamma |
| logit gamma - value More... | |
| bool | myKeepRoutes |
| Information whether all routes should be saved. More... | |
| int | myMaxRouteNumber |
| The maximum route alternatives number. More... | |
| bool | mySkipRouteCalculation |
| Information whether new routes should be calculated. More... | |
| const double | myTheta |
| logit theta - value More... | |
Static Private Attributes | |
| static RouteCostCalculator * | myInstance = 0 |
Cost calculation with c-logit or logit method.
Definition at line 39 of file LogitCalculator.h.
|
inline |
Constructor.
Definition at line 42 of file LogitCalculator.h.
|
inlinevirtual |
Destructor.
Definition at line 46 of file LogitCalculator.h.
|
inlinevirtual |
calculate the probabilities in the logit model
Implements RouteCostCalculator< R, E, V >.
Definition at line 53 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 47 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 97 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
staticinherited |
Definition at line 107 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 57 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myMaxRouteNumber.
|
inlineprivate |
calculate the scaling factor in the logit model
Definition at line 109 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
inlineinherited |
Definition at line 61 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myKeepRoutes.
Referenced by RORouteDef::addAlternative().
|
private |
invalidated assignment operator
|
inlinevirtual |
Implements RouteCostCalculator< R, E, V >.
Definition at line 48 of file LogitCalculator.h.
|
inlineinherited |
Definition at line 65 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::mySkipRouteCalculation.
|
private |
logit beta - value
Definition at line 136 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
private |
The route commonality factors for c-logit.
Definition at line 145 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
private |
logit gamma - value
Definition at line 139 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
staticprivateinherited |
Definition at line 82 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::cleanup().
|
privateinherited |
Information whether all routes should be saved.
Definition at line 88 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::keepRoutes(), and RouteCostCalculator< R, E, V >::RouteCostCalculator().
|
privateinherited |
The maximum route alternatives number.
Definition at line 85 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::getMaxRouteNumber(), and RouteCostCalculator< R, E, V >::RouteCostCalculator().
|
privateinherited |
Information whether new routes should be calculated.
Definition at line 91 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::RouteCostCalculator(), and RouteCostCalculator< R, E, V >::skipRouteCalculation().
|
private |
logit theta - value
Definition at line 142 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().