|
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... | |
| unsigned int | getMaxRouteNumber () const |
| bool | keepRoutes () const |
| LogitCalculator (const SUMOReal beta, const SUMOReal gamma, const SUMOReal theta) | |
| Constructor. More... | |
| void | setCosts (R *route, const SUMOReal 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 | |
| SUMOReal | getBetaForCLogit (const std::vector< R * > alternatives) const |
| calculate the scaling factor in the logit model More... | |
| SUMOReal | 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 SUMOReal | myBeta |
| logit beta - value More... | |
| std::map< const R *, SUMOReal > | myCommonalities |
| The route commonality factors for c-logit. More... | |
| const SUMOReal | myGamma |
| logit gamma - value More... | |
| const SUMOReal | myTheta |
| logit theta - value More... | |
Cost calculation with c-logit or logit method.
Definition at line 47 of file LogitCalculator.h.
|
inline |
Constructor.
Definition at line 50 of file LogitCalculator.h.
|
inlinevirtual |
Destructor.
Definition at line 54 of file LogitCalculator.h.
|
inlinevirtual |
calculate the probabilities in the logit model
Implements RouteCostCalculator< R, E, V >.
Definition at line 61 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, STEPS2TIME, and SUMOReal.
|
inlinestaticinherited |
Definition at line 51 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 105 of file LogitCalculator.h.
References max, min, and SUMOReal.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
staticinherited |
Definition at line 111 of file RouteCostCalculator.h.
References OptionsCont::getFloat(), OptionsCont::getOptions(), and OptionsCont::getString().
Referenced by RORouteDef::addAlternative(), and ROMAAssignments::sue().
|
inlineinherited |
Definition at line 61 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myMaxRouteNumber.
|
inlineprivate |
calculate the scaling factor in the logit model
Definition at line 117 of file LogitCalculator.h.
References max, min, and SUMOReal.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
inlineinherited |
Definition at line 65 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 56 of file LogitCalculator.h.
|
inlineinherited |
Definition at line 69 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::mySkipRouteCalculation.
|
private |
logit beta - value
Definition at line 144 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
private |
The route commonality factors for c-logit.
Definition at line 153 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
private |
logit gamma - value
Definition at line 147 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().
|
private |
logit theta - value
Definition at line 150 of file LogitCalculator.h.
Referenced by LogitCalculator< R, E, V >::calculateProbabilities().