22 #ifndef ROMAAssignments_h 23 #define ROMAAssignments_h 81 void incremental(
const int numIter,
const bool verbose);
87 void sue(
const int maxOuterIteration,
const int maxInnerIteration,
const int kPaths,
const SUMOReal penalty,
const SUMOReal tolerance,
const std::string routeChoiceMethod);
151 : myAssign(assign), myCell(c),
myBegin(begin), myLinkFlow(linkFlow) {}
160 RoutingTask&
operator=(
const RoutingTask&);
SUMOAbstractRouter< ROEdge, ROVehicle > & myRouter
ROMAAssignments(const SUMOTime begin, const SUMOTime end, const bool additiveTraffic, const SUMOReal adaptionFactor, RONet &net, ODMatrix &matrix, SUMOAbstractRouter< ROEdge, ROVehicle > &router)
Constructor.
void incremental(const int numIter, const bool verbose)
std::vector< const ROEdge * > ConstROEdgeVector
const bool myAdditiveTraffic
A vehicle as used by router.
A single O/D-matrix cell.
static SUMOReal getPenalizedTT(const ROEdge *const e, const ROVehicle *const v, SUMOReal t)
Returns the traveltime on an edge including penalties.
void sue(const int maxOuterIteration, const int maxInnerIteration, const int kPaths, const SUMOReal penalty, const SUMOReal tolerance, const std::string routeChoiceMethod)
An O/D (origin/destination) matrix.
bool addRoute(ConstROEdgeVector &edges, std::vector< RORoute * > &paths, std::string routeId, SUMOReal prob)
add a route and check for duplicates
~ROMAAssignments()
Destructor.
static std::map< const ROEdge *const, SUMOReal > myPenalties
static SUMOReal getTravelTime(const ROEdge *const e, const ROVehicle *const v, SUMOReal t)
Returns the traveltime on an edge without penalties.
static SUMOReal getPenalizedEffort(const ROEdge *const e, const ROVehicle *const v, SUMOReal t)
Returns the effort to pass an edge including penalties.
A basic edge for routing applications.
static SUMOReal getCapacity(const ROEdge *edge)
The router's network representation.
ROVehicle * myDefaultVehicle
void getKPaths(const int kPaths, const SUMOReal penalty)
get the k shortest paths
ROMAAssignments & operator=(const ROMAAssignments &src)
Invalidated assignment operator.
Abstract superclass of a task to be run with an index to keep track of pending tasks.
A thread repeatingly calculating incoming tasks.
SUMOReal capacityConstraintFunction(const ROEdge *edge, const SUMOReal flow) const
ROVehicle * getDefaultVehicle()
A basic edge for routing applications.
const SUMOReal myAdaptionFactor