21 #ifndef ROCostCalculator_h
22 #define ROCostCalculator_h
virtual void calculateProbabilities(const ROVehicle *const veh, std::vector< RORoute * > alternatives)=0
calculate the probabilities in the logit model
bool skipRouteCalculation() const
const SUMOReal myA
gawron a - value
const SUMOReal myBeta
logit beta - value
void calculateProbabilities(const ROVehicle *const veh, std::vector< RORoute * > alternatives)
calculate the probabilities
ROGawronCalculator & operator=(const ROGawronCalculator &s)
invalidated assignment operator
Abstract base class providing static factory method.
bool myKeepRoutes
Information whether all routes should be saved.
SUMOReal gawronG(const SUMOReal a, const SUMOReal x) const
Performs the gawron - g() function From "Dynamic User Equilibria...".
A vehicle as used by router.
virtual ~ROCostCalculator()
Destructor.
ROCostCalculator()
Constructor.
void setCosts(RORoute *route, const SUMOReal costs, const bool isActive=false) const
ROLogitCalculator & operator=(const ROLogitCalculator &s)
invalidated assignment operator
bool mySkipRouteCalculation
Information whether new routes should be calculated.
virtual ~ROGawronCalculator()
Destructor.
SUMOReal gawronF(const SUMOReal pdr, const SUMOReal pds, const SUMOReal x) const
Performs the gawron - f() function From "Dynamic User Equilibria...".
ROGawronCalculator(const SUMOReal beta, const SUMOReal a)
Constructor.
unsigned int myMaxRouteNumber
The maximum route alternatives number.
const SUMOReal myGamma
logit gamma - value
void calculateProbabilities(const ROVehicle *const veh, std::vector< RORoute * > alternatives)
calculate the probabilities in the logit model
ROLogitCalculator(const SUMOReal beta, const SUMOReal gamma, const SUMOReal theta)
Constructor.
unsigned int getMaxRouteNumber() const
Cost calculation with c-logit or logit method.
Cost calculation with Gawron's method.
const SUMOReal myTheta
logit theta - value
SUMOReal getBetaForCLogit(const std::vector< RORoute * > alternatives) const
calculate the scaling factor in the logit model
static ROCostCalculator & getCalculator()
std::map< const RORoute *, SUMOReal > myCommonalities
The route commonality factors for c-logit.
static ROCostCalculator * myInstance
const SUMOReal myBeta
gawron beta - value
virtual void setCosts(RORoute *route, const SUMOReal costs, const bool isActive=false) const =0
virtual ~ROLogitCalculator()
Destructor.
A complete router's route.
SUMOReal getThetaForCLogit(const std::vector< RORoute * > alternatives) const
calculate the scaling factor in the logit model
void setCosts(RORoute *route, const SUMOReal costs, const bool isActive=false) const