![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Cost calculation with Gawron's method. More...
#include <GawronCalculator.h>
Public Member Functions | |
| void | calculateProbabilities (std::vector< R * > alternatives, const V *const, const SUMOTime) |
| calculate the probabilities | |
| GawronCalculator (const double beta, const double a) | |
| Constructor. | |
| int | getMaxRouteNumber () const |
| bool | keepAllRoutes () const |
| bool | keepRoute () const |
| void | setCosts (R *route, const double costs, const bool isActive=false) const |
| bool | skipRouteCalculation () const |
| virtual | ~GawronCalculator () |
| Destructor. | |
Static Public Member Functions | |
| static void | cleanup () |
| static RouteCostCalculator< R, E, V > & | getCalculator () |
Private Member Functions | |
| double | gawronF (const double pdr, const double pds, const double x) const |
| Performs the gawron - f() function From "Dynamic User Equilibria...". | |
| double | gawronG (const double a, const double x) const |
| Performs the gawron - g() function From "Dynamic User Equilibria...". | |
| GawronCalculator & | operator= (const GawronCalculator &s) |
| invalidated assignment operator | |
Private Attributes | |
| const double | myA |
| gawron a - value | |
| const double | myBeta |
| gawron beta - 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. | |
Static Private Attributes | |
| static RouteCostCalculator * | myInstance |
Cost calculation with Gawron's method.
Definition at line 37 of file GawronCalculator.h.
|
inline |
Constructor.
Definition at line 40 of file GawronCalculator.h.
Referenced by operator=().
|
inlinevirtual |
Destructor.
Definition at line 43 of file GawronCalculator.h.
|
inlinevirtual |
calculate the probabilities
Implements RouteCostCalculator< R, E, V >.
Definition at line 54 of file GawronCalculator.h.
|
inlinestaticinherited |
Definition at line 46 of file RouteCostCalculator.h.
References myInstance.
Referenced by RONet::cleanup().
|
inlineprivate |
Performs the gawron - f() function From "Dynamic User Equilibria...".
Definition at line 83 of file GawronCalculator.h.
References gawronG(), and myA.
Referenced by calculateProbabilities().
|
inlineprivate |
Performs the gawron - g() function From "Dynamic User Equilibria...".
Definition at line 93 of file GawronCalculator.h.
Referenced by gawronF().
|
staticinherited |
Definition at line 120 of file RouteCostCalculator.h.
References OptionsCont::getFloat(), OptionsCont::getOptions(), OptionsCont::getString(), myInstance, and RouteCostCalculator().
Referenced by RORouteDef::addAlternative(), RORouteDef::preComputeCurrentRoute(), and ROMAAssignments::sue().
|
inlineinherited |
Definition at line 56 of file RouteCostCalculator.h.
References myMaxRouteNumber.
|
inlineinherited |
Definition at line 60 of file RouteCostCalculator.h.
References myKeepRoutes.
|
inlineinherited |
Definition at line 68 of file RouteCostCalculator.h.
References myKeepRouteProb, and RandHelper::rand().
|
private |
invalidated assignment operator
References GawronCalculator().
|
inlinevirtual |
Implements RouteCostCalculator< R, E, V >.
Definition at line 45 of file GawronCalculator.h.
References myBeta.
|
inlineinherited |
Definition at line 64 of file RouteCostCalculator.h.
References mySkipNewRoutes.
|
private |
gawron a - value
Definition at line 105 of file GawronCalculator.h.
Referenced by GawronCalculator(), and gawronF().
|
private |
gawron beta - value
Definition at line 102 of file GawronCalculator.h.
Referenced by GawronCalculator(), and setCosts().
|
staticprivateinherited |
Definition at line 92 of file RouteCostCalculator.h.
Referenced by cleanup(), and getCalculator().
|
privateinherited |
Information whether the old route shall be kept.
Definition at line 104 of file RouteCostCalculator.h.
Referenced by keepRoute(), and RouteCostCalculator().
|
privateinherited |
Information whether all routes should be saved.
Definition at line 98 of file RouteCostCalculator.h.
Referenced by keepAllRoutes(), and RouteCostCalculator().
|
privateinherited |
The maximum route alternatives number.
Definition at line 95 of file RouteCostCalculator.h.
Referenced by getMaxRouteNumber(), and RouteCostCalculator().
|
privateinherited |
Information whether new routes shall be computed.
Definition at line 101 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator(), and skipRouteCalculation().