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 SUMOReal beta, const SUMOReal a) | |
Constructor. More... | |
int | getMaxRouteNumber () const |
bool | keepRoutes () const |
void | setCosts (R *route, const SUMOReal 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 | |
SUMOReal | gawronF (const SUMOReal pdr, const SUMOReal pds, const SUMOReal x) const |
Performs the gawron - f() function From "Dynamic User Equilibria...". More... | |
SUMOReal | gawronG (const SUMOReal a, const SUMOReal x) const |
Performs the gawron - g() function From "Dynamic User Equilibria...". More... | |
GawronCalculator & | operator= (const GawronCalculator &s) |
invalidated assignment operator More... | |
Private Attributes | |
const SUMOReal | myA |
gawron a - value More... | |
const SUMOReal | myBeta |
gawron beta - value More... | |
Cost calculation with Gawron's method.
Definition at line 47 of file GawronCalculator.h.
|
inline |
Constructor.
Definition at line 50 of file GawronCalculator.h.
|
inlinevirtual |
Destructor.
Definition at line 53 of file GawronCalculator.h.
|
inlinevirtual |
calculate the probabilities
Implements RouteCostCalculator< R, E, V >.
Definition at line 64 of file GawronCalculator.h.
References GawronCalculator< R, E, V >::gawronF(), ISNAN(), MAX2(), MIN2(), and SUMOReal.
|
inlinestaticinherited |
Definition at line 55 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 93 of file GawronCalculator.h.
References GawronCalculator< R, E, V >::gawronG(), max, 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 103 of file GawronCalculator.h.
Referenced by GawronCalculator< R, E, V >::gawronF().
|
staticinherited |
Definition at line 115 of file RouteCostCalculator.h.
References OptionsCont::getFloat(), OptionsCont::getOptions(), and OptionsCont::getString().
Referenced by RORouteDef::addAlternative(), and ROMAAssignments::sue().
|
inlineinherited |
Definition at line 65 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myMaxRouteNumber.
|
inlineinherited |
Definition at line 69 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 55 of file GawronCalculator.h.
References GawronCalculator< R, E, V >::myBeta, and SUMOReal.
|
inlineinherited |
Definition at line 73 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::mySkipRouteCalculation.
|
private |
gawron a - value
Definition at line 115 of file GawronCalculator.h.
Referenced by GawronCalculator< R, E, V >::gawronF().
|
private |
gawron beta - value
Definition at line 112 of file GawronCalculator.h.
Referenced by GawronCalculator< R, E, V >::setCosts().