![]() |
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 More... | |
GawronCalculator (const double beta, const double a) | |
Constructor. More... | |
int | getMaxRouteNumber () const |
bool | keepRoutes () const |
void | setCosts (R *route, const double costs, const bool isActive=false) const |
bool | skipRouteCalculation () const |
virtual | ~GawronCalculator () |
Destructor. More... | |
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...". More... | |
double | gawronG (const double a, const double x) const |
Performs the gawron - g() function From "Dynamic User Equilibria...". More... | |
GawronCalculator & | operator= (const GawronCalculator &s) |
invalidated assignment operator More... | |
Private Attributes | |
const double | myA |
gawron a - value More... | |
const double | myBeta |
gawron beta - 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... | |
Static Private Attributes | |
static RouteCostCalculator * | myInstance = 0 |
Cost calculation with Gawron's method.
Definition at line 39 of file GawronCalculator.h.
|
inline |
Constructor.
Definition at line 42 of file GawronCalculator.h.
|
inlinevirtual |
Destructor.
Definition at line 45 of file GawronCalculator.h.
|
inlinevirtual |
calculate the probabilities
Implements RouteCostCalculator< R, E, V >.
Definition at line 56 of file GawronCalculator.h.
References GawronCalculator< R, E, V >::gawronF(), ISNAN(), MAX2(), and MIN2().
|
inlinestaticinherited |
Definition at line 47 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myInstance.
Referenced by RONet::cleanup().
|
inlineprivate |
Performs the gawron - f() function From "Dynamic User Equilibria...".
Definition at line 85 of file GawronCalculator.h.
References GawronCalculator< R, E, V >::gawronG(), and GawronCalculator< R, E, V >::myA.
Referenced by GawronCalculator< R, E, V >::calculateProbabilities().
|
inlineprivate |
Performs the gawron - g() function From "Dynamic User Equilibria...".
Definition at line 95 of file GawronCalculator.h.
Referenced by GawronCalculator< R, E, V >::gawronF().
|
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.
Referenced by RORouteDef::addAlternative().
|
inlineinherited |
Definition at line 61 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myKeepRoutes.
|
private |
invalidated assignment operator
|
inlinevirtual |
Implements RouteCostCalculator< R, E, V >.
Definition at line 47 of file GawronCalculator.h.
References GawronCalculator< R, E, V >::myBeta.
|
inlineinherited |
Definition at line 65 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::mySkipRouteCalculation.
|
private |
gawron a - value
Definition at line 107 of file GawronCalculator.h.
Referenced by GawronCalculator< R, E, V >::gawronF().
|
private |
gawron beta - value
Definition at line 104 of file GawronCalculator.h.
Referenced by GawronCalculator< R, E, V >::setCosts().
|
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().