{"id":{"repo_id":"ets-quebec","oai_identifier":"oai:espace.etsmtl.ca:4157"},"canonical_url":"https://search.ndltd.org/etd/ets-quebec/oai:espace.etsmtl.ca:4157","repository":{"repo_id":"ets-quebec","name":"ETS (Quebec)","base_url":"https://espace.etsmtl.ca/cgi/oai2"},"display":{"title":"Solving dynamic and stochastic vehicle routing problems by approximate dynamic programming","abstract":"Many transportation systems must make decisions before all the relevant information is known, and they must do this with very limited computing time. These settings share a common structure. Information becomes available step by step, not all at once. The decisions that depend on this information cannot wait until it is complete. And the time to compute each decision is very short. This thesis studies three such problems as variants of the vehicle routing problem (VRP), the problem of serving customers with a fleet of capacity-limited vehicles. The main idea of the thesis is that the way a problem reveals its information over time, which we call its information process, should decide three things. It should decide how we formulate the problem, how we represent the useful information, and how we divide the computation between a preparation phase and the moment of decision. The goal is to produce good routing decisions under uncertainty within the time limits of daily and real-time operations. We reach this goal by moving the heavy computation away from the moment of decision and by using the structure of each information process instead of ignoring it. In all three problems, the computation is divided between an offline phase, prepared before the day or the trip begins, and an online phase, run at the moment of decision. What changes from one problem to the next is where the weight of this division falls. The information process is what decides it, since it fixes how much can be prepared in advance, how much must be computed while the operation runs, and the time budget each phase must respect. In the first problem, the daily customers become known only at the start of the day, when the vehicles are ready to leave, and the situation repeats every day from a stable distribution. This is the most favorable case for offline preparation, so almost all the computation is done offline and only once, and the learned policy then produces each dispatching decision instantly. When a little more time is available at the moment of decision, an online rollout step added on top of the policy improves the decisions further, and already splits the computation between the two phases. In the second problem, the situation still repeats every day, but the operator must now also select each morning a subset of customers to outsource. This decision requires an online search over many candidate options, run for the specific customer requests of that day. The search is fast enough only because each candidate is evaluated by a value function trained offline, so here offline learning and online search carry comparable weight. In the third problem, the information arrives as a continuous real-time signal, so the plan cannot be fixed in advance and must be recomputed as the information changes. The offline phase does not disappear, but it shrinks to a preprocessing step that prepares the estimates the online re-planning needs, so that each re-planning stays fast. Across the three problems, the offline phase always produces exactly the object that the online phase consumes, and the balance between them shifts steadily from offline toward online, as the information process requires. The first study is motivated by donor collection services, where a fleet of capacity-limited vehicles must serve customers whose identity, location, and number change completely from one day to the next. The demand of each customer is uncertain, and it is revealed only when a vehicle reaches its door. Because the fleet size and the length of the working day are limited, not all demand can be served, so the objective is to maximize the expected demand served under the capacity and duration limits. The problem also allows several operational flexibilities. A customer may be served partially, and its remaining demand may be completed later by the same vehicle or by another one. When a vehicle becomes full, it may return to the depot to empty its load and then resume collection, so it can perform several trips during the day. It may also empty its load preventively, before it is completely full, to reduce the risk of reaching a customer with too little remaining capacity to serve it. We formulate this as the vehicle routing problem with a highly variable customer basis and stochastic demands, and we model it as a Markov decision process (MDP). Solving this MDP directly is not possible for two reasons. The action space, which contains all possible decisions, is very large, because each time a decision is made, the next moves of all vehicles are chosen jointly. The state, which describes the system at a given time, is also very large. Moreover, its size is not fixed. Since the number of customers changes from one day to the next, the length of the state changes as well. We introduce two ideas to overcome these two difficulties. First, a consecutive action selection rule lets a single vehicle, called the active vehicle, decide at each decision epoch. This keeps the coordination between vehicles through the shared state, and it avoids the large joint action space that appears when all vehicles decide at the same time. Second, an observation function turns the variable-size state into a fixed-size summary that keeps the useful information and that a neural network can use. It keeps detailed features for a small set of promising customers, chosen by a score that favors large demand close to the active vehicle, and encodes all the remaining customers as a coarse grid over the service area, together with the state of the vehicles. The policy is trained once by simulation over millions of synthetic days. It outperforms five benchmark policies, and it stays competitive with a specialized method that, unlike our policy, knows the customer locations in advance. The second study builds on this foundation and moves one decision level higher. A logistics service provider must decide every morning, before any demand is revealed, which customers it will subcontract to a common carrier and which it will serve with its own fleet. We introduce this problem as the vehicle routing problem with stochastic demands and outsourcing. To evaluate one possible partition of customers into outsourced customers and customers served by the own fleet, we need the expected cost of a complete stochastic routing problem, and a search that tests thousands of partitions cannot solve this inner problem from scratch every time. We show that the value function learned to control the vehicles can also serve as an instantaneous estimator of this cost. During training, each simulated day uses a new, randomly generated set of customers that varies in number, location, and expected demand. A single trained neural network can therefore estimate the routing cost of the customers that any partition keeps for the own fleet. To build the fixed-size observation that this value function reads, we replace the hand-crafted observation function of the first study with a graph attention network. In the first study, the observation kept detailed features only for a heuristically chosen subset of customers, and summarized the rest on a grid whose resolution had to be tuned. The graph attention network removes both limitations. It uses attention to score how relevant every customer and vehicle is to the active vehicle, and combines them into a single fixed-size vector, so that no customer is discarded by a rule and no grid resolution is needed. The learned routing policy reduces routing costs by 19.6% relative to the hand-crafted representation, which shows the value of learning it. The complete two-level method lowers total costs by 13.7% on average relative to the same method built on the hand-crafted representation, and it produces complete daily outsourcing and routing decisions within minutes, whereas methods without an offline-trained cost estimator need more than one hour. The third study takes the same question to electric mobility, where the scarce and uncertain resource is charging capacity instead of cargo space. A single electric vehicle (EV) must travel from an origin to a destination in the shortest possible time, over a distance long enough that its battery cannot cover the route, so it must recharge one or more times on the way. It recharges at public charging stations, where charging can be partial and the charging time is a nonlinear function of the station’s technology, so the amount of energy to take at each station is a decision, not a fixed quantity. Because the stations are public and shared with other EVs, they may be occupied on arrival, and the resulting waiting time is uncertain and revealed only when the EV reaches the station. The objective is to minimize the total trip time, which is the sum of driving, charging, and waiting. Recent applications now broadcast, in real time, a binary occupancy indicator for each public station, reporting whether it is currently busy or free, and we assume the EV receives these updates continuously for all stations. We model this as the EV shortest path problem with charging-station occupancy information, and formulate it as an MDP. Our aim is to study how this occupancy information can be folded into the routing and charging decisions, and how much it helps the EV decide better. The problem is hard for two reasons that compound. Even without any uncertainty, choosing which stations to visit and how much to charge under the battery limit is already an NP-hard resource-constrained shortest path problem. On top of this, the waiting times are uncertain, and the information process adds a feature the first two problems do not have, the continuous occupancy indicator, so the EV may need to revise its plan at any moment, even in the middle of a road segment. We solve the problem by online reoptimization, replanning the remaining stations and charging amounts each time new information arrives. A simulation-based preprocessing phase estimates, for each station, the expected waiting time as a function of the EV’s arrival time and of how recently the station changed its status. These estimates capture the temporary queue behavior that steady-state queueing formulas miss, which matters exactly when the real-time signal makes this behavior decision-relevant. The waiting time estimate for a station depends on when the EV would arrive there, but that arrival time is itself hard to compute, since the EV may stop to charge and wait at other stations on the way. A fast heuristic estimates these arrival times. With the waiting times fixed to these estimates, each replanning step reduces to a deterministic problem, which is solved exactly in a few seconds. Compared with a similar reoptimization method that does not use the occupancy indicator, and therefore learns whether a station is busy only on arrival, our method reduces waiting times by up to 95% and total trip duration by up to 18.5%. The three studies look different, but they share the same structure. In each one, the uncertainty is resolved only when the vehicle arrives, at a customer’s door or at a station’s queue. In each one, the offline phase produces exactly what the online phase needs. This is a dispatching policy in the first study, a cost estimator in the second, and a set of waiting time functions in the third. What changes across the three is only where the balance between the two phases falls, and this balance is set by the information process. The three studies thus span the range from almost fully offline to almost fully online, and together they support the central claim of the thesis, that the information process should decide how computation is scheduled. The main contributions follow from this. We introduce a family of three new routing problems, each with a proper MDP formulation. We develop a progression of state representations for routing problems of variable size, which goes from hand-crafted to learned and measures the value of learning under controlled conditions. We propose a reusable template that embeds offline-trained value functions as cost estimators inside a combinatorial search. We show that both paradigms, learned policies and online reoptimization, bring these problems within operational time budgets once the heavy computation is moved offline, and we identify the conditions under which each one is the right choice. Finally, we release public instance sets and code that support reproducibility and future comparison.","abstract_html":"Many transportation systems must make decisions before all the relevant information is known, and they must do this with very limited computing time. These settings share a common structure. Information becomes available step by step, not all at once. The decisions that depend on this information cannot wait until it is complete. And the time to compute each decision is very short. This thesis studies three such problems as variants of the vehicle routing problem (VRP), the problem of serving customers with a fleet of capacity-limited vehicles. The main idea of the thesis is that the way a problem reveals its information over time, which we call its information process, should decide three things. It should decide how we formulate the problem, how we represent the useful information, and how we divide the computation between a preparation phase and the moment of decision. The goal is to produce good routing decisions under uncertainty within the time limits of daily and real-time operations. We reach this goal by moving the heavy computation away from the moment of decision and by using the structure of each information process instead of ignoring it. In all three problems, the computation is divided between an offline phase, prepared before the day or the trip begins, and an online phase, run at the moment of decision. What changes from one problem to the next is where the weight of this division falls. The information process is what decides it, since it fixes how much can be prepared in advance, how much must be computed while the operation runs, and the time budget each phase must respect. In the first problem, the daily customers become known only at the start of the day, when the vehicles are ready to leave, and the situation repeats every day from a stable distribution. This is the most favorable case for offline preparation, so almost all the computation is done offline and only once, and the learned policy then produces each dispatching decision instantly. When a little more time is available at the moment of decision, an online rollout step added on top of the policy improves the decisions further, and already splits the computation between the two phases. In the second problem, the situation still repeats every day, but the operator must now also select each morning a subset of customers to outsource. This decision requires an online search over many candidate options, run for the specific customer requests of that day. The search is fast enough only because each candidate is evaluated by a value function trained offline, so here offline learning and online search carry comparable weight. In the third problem, the information arrives as a continuous real-time signal, so the plan cannot be fixed in advance and must be recomputed as the information changes. The offline phase does not disappear, but it shrinks to a preprocessing step that prepares the estimates the online re-planning needs, so that each re-planning stays fast. Across the three problems, the offline phase always produces exactly the object that the online phase consumes, and the balance between them shifts steadily from offline toward online, as the information process requires. The first study is motivated by donor collection services, where a fleet of capacity-limited vehicles must serve customers whose identity, location, and number change completely from one day to the next. The demand of each customer is uncertain, and it is revealed only when a vehicle reaches its door. Because the fleet size and the length of the working day are limited, not all demand can be served, so the objective is to maximize the expected demand served under the capacity and duration limits. The problem also allows several operational flexibilities. A customer may be served partially, and its remaining demand may be completed later by the same vehicle or by another one. When a vehicle becomes full, it may return to the depot to empty its load and then resume collection, so it can perform several trips during the day. It may also empty its load preventively, before it is completely full, to reduce the risk of reaching a customer with too little remaining capacity to serve it. We formulate this as the vehicle routing problem with a highly variable customer basis and stochastic demands, and we model it as a Markov decision process (MDP). Solving this MDP directly is not possible for two reasons. The action space, which contains all possible decisions, is very large, because each time a decision is made, the next moves of all vehicles are chosen jointly. The state, which describes the system at a given time, is also very large. Moreover, its size is not fixed. Since the number of customers changes from one day to the next, the length of the state changes as well. We introduce two ideas to overcome these two difficulties. First, a consecutive action selection rule lets a single vehicle, called the active vehicle, decide at each decision epoch. This keeps the coordination between vehicles through the shared state, and it avoids the large joint action space that appears when all vehicles decide at the same time. Second, an observation function turns the variable-size state into a fixed-size summary that keeps the useful information and that a neural network can use. It keeps detailed features for a small set of promising customers, chosen by a score that favors large demand close to the active vehicle, and encodes all the remaining customers as a coarse grid over the service area, together with the state of the vehicles. The policy is trained once by simulation over millions of synthetic days. It outperforms five benchmark policies, and it stays competitive with a specialized method that, unlike our policy, knows the customer locations in advance. The second study builds on this foundation and moves one decision level higher. A logistics service provider must decide every morning, before any demand is revealed, which customers it will subcontract to a common carrier and which it will serve with its own fleet. We introduce this problem as the vehicle routing problem with stochastic demands and outsourcing. To evaluate one possible partition of customers into outsourced customers and customers served by the own fleet, we need the expected cost of a complete stochastic routing problem, and a search that tests thousands of partitions cannot solve this inner problem from scratch every time. We show that the value function learned to control the vehicles can also serve as an instantaneous estimator of this cost. During training, each simulated day uses a new, randomly generated set of customers that varies in number, location, and expected demand. A single trained neural network can therefore estimate the routing cost of the customers that any partition keeps for the own fleet. To build the fixed-size observation that this value function reads, we replace the hand-crafted observation function of the first study with a graph attention network. In the first study, the observation kept detailed features only for a heuristically chosen subset of customers, and summarized the rest on a grid whose resolution had to be tuned. The graph attention network removes both limitations. It uses attention to score how relevant every customer and vehicle is to the active vehicle, and combines them into a single fixed-size vector, so that no customer is discarded by a rule and no grid resolution is needed. The learned routing policy reduces routing costs by 19.6% relative to the hand-crafted representation, which shows the value of learning it. The complete two-level method lowers total costs by 13.7% on average relative to the same method built on the hand-crafted representation, and it produces complete daily outsourcing and routing decisions within minutes, whereas methods without an offline-trained cost estimator need more than one hour. The third study takes the same question to electric mobility, where the scarce and uncertain resource is charging capacity instead of cargo space. A single electric vehicle (EV) must travel from an origin to a destination in the shortest possible time, over a distance long enough that its battery cannot cover the route, so it must recharge one or more times on the way. It recharges at public charging stations, where charging can be partial and the charging time is a nonlinear function of the station’s technology, so the amount of energy to take at each station is a decision, not a fixed quantity. Because the stations are public and shared with other EVs, they may be occupied on arrival, and the resulting waiting time is uncertain and revealed only when the EV reaches the station. The objective is to minimize the total trip time, which is the sum of driving, charging, and waiting. Recent applications now broadcast, in real time, a binary occupancy indicator for each public station, reporting whether it is currently busy or free, and we assume the EV receives these updates continuously for all stations. We model this as the EV shortest path problem with charging-station occupancy information, and formulate it as an MDP. Our aim is to study how this occupancy information can be folded into the routing and charging decisions, and how much it helps the EV decide better. The problem is hard for two reasons that compound. Even without any uncertainty, choosing which stations to visit and how much to charge under the battery limit is already an NP-hard resource-constrained shortest path problem. On top of this, the waiting times are uncertain, and the information process adds a feature the first two problems do not have, the continuous occupancy indicator, so the EV may need to revise its plan at any moment, even in the middle of a road segment. We solve the problem by online reoptimization, replanning the remaining stations and charging amounts each time new information arrives. A simulation-based preprocessing phase estimates, for each station, the expected waiting time as a function of the EV’s arrival time and of how recently the station changed its status. These estimates capture the temporary queue behavior that steady-state queueing formulas miss, which matters exactly when the real-time signal makes this behavior decision-relevant. The waiting time estimate for a station depends on when the EV would arrive there, but that arrival time is itself hard to compute, since the EV may stop to charge and wait at other stations on the way. A fast heuristic estimates these arrival times. With the waiting times fixed to these estimates, each replanning step reduces to a deterministic problem, which is solved exactly in a few seconds. Compared with a similar reoptimization method that does not use the occupancy indicator, and therefore learns whether a station is busy only on arrival, our method reduces waiting times by up to 95% and total trip duration by up to 18.5%. The three studies look different, but they share the same structure. In each one, the uncertainty is resolved only when the vehicle arrives, at a customer’s door or at a station’s queue. In each one, the offline phase produces exactly what the online phase needs. This is a dispatching policy in the first study, a cost estimator in the second, and a set of waiting time functions in the third. What changes across the three is only where the balance between the two phases falls, and this balance is set by the information process. The three studies thus span the range from almost fully offline to almost fully online, and together they support the central claim of the thesis, that the information process should decide how computation is scheduled. The main contributions follow from this. We introduce a family of three new routing problems, each with a proper MDP formulation. We develop a progression of state representations for routing problems of variable size, which goes from hand-crafted to learned and measures the value of learning under controlled conditions. We propose a reusable template that embeds offline-trained value functions as cost estimators inside a combinatorial search. We show that both paradigms, learned policies and online reoptimization, bring these problems within operational time budgets once the heavy computation is moved offline, and we identify the conditions under which each one is the right choice. Finally, we release public instance sets and code that support reproducibility and future comparison.","abstract_has_math":false,"creators":["Dastpak, Mohsen"],"institution":"École de technologie supérieure","degree_name":"Thèse de doctorat électronique","degree_level":"phd","degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-10-29","date_published":"2026-10-29","updated_at":"2026-11-25T22:14:23Z","subjects":["tournées de véhicules, incertitude, apprentissage par renforcement, processus décisionnels de Markov, sous-traitance, véhicules électriques, réoptimisation"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier","label":"Identifier","values":["INSERT-YOUR-LIBRARY-ID-HERE4157"],"render_values":[{"text":"INSERT-YOUR-LIBRARY-ID-HERE4157","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":null,"outbound_label":null,"outbound_source":null,"record_url":null,"record_label":null,"record_kind":null,"record_source":null,"access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://espace.etsmtl.ca/cgi/oai2?verb=GetRecord&metadataPrefix=oai_etdms&identifier=oai%3Aespace.etsmtl.ca%3A4157","prefix":"oai_etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:creator","label":"Author","values":["Dastpak, Mohsen"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026-10-29"]},{"key":"dc:publisher","label":"Institution","values":["École de technologie supérieure"]},{"key":"dc:type","label":"Dc Type","values":["Electronic Thesis or Dissertation"]},{"key":"thesis:degree_level","label":"Degree Level","values":["phd"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Thèse de doctorat électronique"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["École de technologie supérieure"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["tournées de véhicules, incertitude, apprentissage par renforcement, processus décisionnels de Markov, sous-traitance, véhicules électriques, réoptimisation"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["INSERT-YOUR-LIBRARY-ID-HERE4157"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["Many transportation systems must make decisions before all the relevant information is known, and they must do this with very limited computing time. These settings share a common structure. Information becomes available step by step, not all at once. The decisions that depend on this information cannot wait until it is complete. And the time to compute each decision is very short. This thesis studies three such problems as variants of the vehicle routing problem (VRP), the problem of serving customers with a fleet of capacity-limited vehicles. The main idea of the thesis is that the way a problem reveals its information over time, which we call its information process, should decide three things. It should decide how we formulate the problem, how we represent the useful information, and how we divide the computation between a preparation phase and the moment of decision. The goal is to produce good routing decisions under uncertainty within the time limits of daily and real-time operations. We reach this goal by moving the heavy computation away from the moment of decision and by using the structure of each information process instead of ignoring it. In all three problems, the computation is divided between an offline phase, prepared before the day or the trip begins, and an online phase, run at the moment of decision. What changes from one problem to the next is where the weight of this division falls. The information process is what decides it, since it fixes how much can be prepared in advance, how much must be computed while the operation runs, and the time budget each phase must respect. In the first problem, the daily customers become known only at the start of the day, when the vehicles are ready to leave, and the situation repeats every day from a stable distribution. This is the most favorable case for offline preparation, so almost all the computation is done offline and only once, and the learned policy then produces each dispatching decision instantly. When a little more time is available at the moment of decision, an online rollout step added on top of the policy improves the decisions further, and already splits the computation between the two phases. In the second problem, the situation still repeats every day, but the operator must now also select each morning a subset of customers to outsource. This decision requires an online search over many candidate options, run for the specific customer requests of that day. The search is fast enough only because each candidate is evaluated by a value function trained offline, so here offline learning and online search carry comparable weight. In the third problem, the information arrives as a continuous real-time signal, so the plan cannot be fixed in advance and must be recomputed as the information changes. The offline phase does not disappear, but it shrinks to a preprocessing step that prepares the estimates the online re-planning needs, so that each re-planning stays fast. Across the three problems, the offline phase always produces exactly the object that the online phase consumes, and the balance between them shifts steadily from offline toward online, as the information process requires. The first study is motivated by donor collection services, where a fleet of capacity-limited vehicles must serve customers whose identity, location, and number change completely from one day to the next. The demand of each customer is uncertain, and it is revealed only when a vehicle reaches its door. Because the fleet size and the length of the working day are limited, not all demand can be served, so the objective is to maximize the expected demand served under the capacity and duration limits. The problem also allows several operational flexibilities. A customer may be served partially, and its remaining demand may be completed later by the same vehicle or by another one. When a vehicle becomes full, it may return to the depot to empty its load and then resume collection, so it can perform several trips during the day. It may also empty its load preventively, before it is completely full, to reduce the risk of reaching a customer with too little remaining capacity to serve it. We formulate this as the vehicle routing problem with a highly variable customer basis and stochastic demands, and we model it as a Markov decision process (MDP). Solving this MDP directly is not possible for two reasons. The action space, which contains all possible decisions, is very large, because each time a decision is made, the next moves of all vehicles are chosen jointly. The state, which describes the system at a given time, is also very large. Moreover, its size is not fixed. Since the number of customers changes from one day to the next, the length of the state changes as well. We introduce two ideas to overcome these two difficulties. First, a consecutive action selection rule lets a single vehicle, called the active vehicle, decide at each decision epoch. This keeps the coordination between vehicles through the shared state, and it avoids the large joint action space that appears when all vehicles decide at the same time. Second, an observation function turns the variable-size state into a fixed-size summary that keeps the useful information and that a neural network can use. It keeps detailed features for a small set of promising customers, chosen by a score that favors large demand close to the active vehicle, and encodes all the remaining customers as a coarse grid over the service area, together with the state of the vehicles. The policy is trained once by simulation over millions of synthetic days. It outperforms five benchmark policies, and it stays competitive with a specialized method that, unlike our policy, knows the customer locations in advance. The second study builds on this foundation and moves one decision level higher. A logistics service provider must decide every morning, before any demand is revealed, which customers it will subcontract to a common carrier and which it will serve with its own fleet. We introduce this problem as the vehicle routing problem with stochastic demands and outsourcing. To evaluate one possible partition of customers into outsourced customers and customers served by the own fleet, we need the expected cost of a complete stochastic routing problem, and a search that tests thousands of partitions cannot solve this inner problem from scratch every time. We show that the value function learned to control the vehicles can also serve as an instantaneous estimator of this cost. During training, each simulated day uses a new, randomly generated set of customers that varies in number, location, and expected demand. A single trained neural network can therefore estimate the routing cost of the customers that any partition keeps for the own fleet. To build the fixed-size observation that this value function reads, we replace the hand-crafted observation function of the first study with a graph attention network. In the first study, the observation kept detailed features only for a heuristically chosen subset of customers, and summarized the rest on a grid whose resolution had to be tuned. The graph attention network removes both limitations. It uses attention to score how relevant every customer and vehicle is to the active vehicle, and combines them into a single fixed-size vector, so that no customer is discarded by a rule and no grid resolution is needed. The learned routing policy reduces routing costs by 19.6% relative to the hand-crafted representation, which shows the value of learning it. The complete two-level method lowers total costs by 13.7% on average relative to the same method built on the hand-crafted representation, and it produces complete daily outsourcing and routing decisions within minutes, whereas methods without an offline-trained cost estimator need more than one hour. The third study takes the same question to electric mobility, where the scarce and uncertain resource is charging capacity instead of cargo space. A single electric vehicle (EV) must travel from an origin to a destination in the shortest possible time, over a distance long enough that its battery cannot cover the route, so it must recharge one or more times on the way. It recharges at public charging stations, where charging can be partial and the charging time is a nonlinear function of the station’s technology, so the amount of energy to take at each station is a decision, not a fixed quantity. Because the stations are public and shared with other EVs, they may be occupied on arrival, and the resulting waiting time is uncertain and revealed only when the EV reaches the station. The objective is to minimize the total trip time, which is the sum of driving, charging, and waiting. Recent applications now broadcast, in real time, a binary occupancy indicator for each public station, reporting whether it is currently busy or free, and we assume the EV receives these updates continuously for all stations. We model this as the EV shortest path problem with charging-station occupancy information, and formulate it as an MDP. Our aim is to study how this occupancy information can be folded into the routing and charging decisions, and how much it helps the EV decide better. The problem is hard for two reasons that compound. Even without any uncertainty, choosing which stations to visit and how much to charge under the battery limit is already an NP-hard resource-constrained shortest path problem. On top of this, the waiting times are uncertain, and the information process adds a feature the first two problems do not have, the continuous occupancy indicator, so the EV may need to revise its plan at any moment, even in the middle of a road segment. We solve the problem by online reoptimization, replanning the remaining stations and charging amounts each time new information arrives. A simulation-based preprocessing phase estimates, for each station, the expected waiting time as a function of the EV’s arrival time and of how recently the station changed its status. These estimates capture the temporary queue behavior that steady-state queueing formulas miss, which matters exactly when the real-time signal makes this behavior decision-relevant. The waiting time estimate for a station depends on when the EV would arrive there, but that arrival time is itself hard to compute, since the EV may stop to charge and wait at other stations on the way. A fast heuristic estimates these arrival times. With the waiting times fixed to these estimates, each replanning step reduces to a deterministic problem, which is solved exactly in a few seconds. Compared with a similar reoptimization method that does not use the occupancy indicator, and therefore learns whether a station is busy only on arrival, our method reduces waiting times by up to 95% and total trip duration by up to 18.5%. The three studies look different, but they share the same structure. In each one, the uncertainty is resolved only when the vehicle arrives, at a customer’s door or at a station’s queue. In each one, the offline phase produces exactly what the online phase needs. This is a dispatching policy in the first study, a cost estimator in the second, and a set of waiting time functions in the third. What changes across the three is only where the balance between the two phases falls, and this balance is set by the information process. The three studies thus span the range from almost fully offline to almost fully online, and together they support the central claim of the thesis, that the information process should decide how computation is scheduled. The main contributions follow from this. We introduce a family of three new routing problems, each with a proper MDP formulation. We develop a progression of state representations for routing problems of variable size, which goes from hand-crafted to learned and measures the value of learning under controlled conditions. We propose a reusable template that embeds offline-trained value functions as cost estimators inside a combinatorial search. We show that both paradigms, learned policies and online reoptimization, bring these problems within operational time budgets once the heavy computation is moved offline, and we identify the conditions under which each one is the right choice. Finally, we release public instance sets and code that support reproducibility and future comparison."]},{"key":"dc:format","label":"Dc Format","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Solving dynamic and stochastic vehicle routing problems by approximate dynamic programming"]}]}],"canonical_facts":{"dc:creator":["Dastpak, Mohsen"],"dc:date":["2026-10-29"],"dc:description":["Many transportation systems must make decisions before all the relevant information is known, and they must do this with very limited computing time. These settings share a common structure. Information becomes available step by step, not all at once. The decisions that depend on this information cannot wait until it is complete. And the time to compute each decision is very short. This thesis studies three such problems as variants of the vehicle routing problem (VRP), the problem of serving customers with a fleet of capacity-limited vehicles. The main idea of the thesis is that the way a problem reveals its information over time, which we call its information process, should decide three things. It should decide how we formulate the problem, how we represent the useful information, and how we divide the computation between a preparation phase and the moment of decision. The goal is to produce good routing decisions under uncertainty within the time limits of daily and real-time operations. We reach this goal by moving the heavy computation away from the moment of decision and by using the structure of each information process instead of ignoring it. In all three problems, the computation is divided between an offline phase, prepared before the day or the trip begins, and an online phase, run at the moment of decision. What changes from one problem to the next is where the weight of this division falls. The information process is what decides it, since it fixes how much can be prepared in advance, how much must be computed while the operation runs, and the time budget each phase must respect. In the first problem, the daily customers become known only at the start of the day, when the vehicles are ready to leave, and the situation repeats every day from a stable distribution. This is the most favorable case for offline preparation, so almost all the computation is done offline and only once, and the learned policy then produces each dispatching decision instantly. When a little more time is available at the moment of decision, an online rollout step added on top of the policy improves the decisions further, and already splits the computation between the two phases. In the second problem, the situation still repeats every day, but the operator must now also select each morning a subset of customers to outsource. This decision requires an online search over many candidate options, run for the specific customer requests of that day. The search is fast enough only because each candidate is evaluated by a value function trained offline, so here offline learning and online search carry comparable weight. In the third problem, the information arrives as a continuous real-time signal, so the plan cannot be fixed in advance and must be recomputed as the information changes. The offline phase does not disappear, but it shrinks to a preprocessing step that prepares the estimates the online re-planning needs, so that each re-planning stays fast. Across the three problems, the offline phase always produces exactly the object that the online phase consumes, and the balance between them shifts steadily from offline toward online, as the information process requires. The first study is motivated by donor collection services, where a fleet of capacity-limited vehicles must serve customers whose identity, location, and number change completely from one day to the next. The demand of each customer is uncertain, and it is revealed only when a vehicle reaches its door. Because the fleet size and the length of the working day are limited, not all demand can be served, so the objective is to maximize the expected demand served under the capacity and duration limits. The problem also allows several operational flexibilities. A customer may be served partially, and its remaining demand may be completed later by the same vehicle or by another one. When a vehicle becomes full, it may return to the depot to empty its load and then resume collection, so it can perform several trips during the day. It may also empty its load preventively, before it is completely full, to reduce the risk of reaching a customer with too little remaining capacity to serve it. We formulate this as the vehicle routing problem with a highly variable customer basis and stochastic demands, and we model it as a Markov decision process (MDP). Solving this MDP directly is not possible for two reasons. The action space, which contains all possible decisions, is very large, because each time a decision is made, the next moves of all vehicles are chosen jointly. The state, which describes the system at a given time, is also very large. Moreover, its size is not fixed. Since the number of customers changes from one day to the next, the length of the state changes as well. We introduce two ideas to overcome these two difficulties. First, a consecutive action selection rule lets a single vehicle, called the active vehicle, decide at each decision epoch. This keeps the coordination between vehicles through the shared state, and it avoids the large joint action space that appears when all vehicles decide at the same time. Second, an observation function turns the variable-size state into a fixed-size summary that keeps the useful information and that a neural network can use. It keeps detailed features for a small set of promising customers, chosen by a score that favors large demand close to the active vehicle, and encodes all the remaining customers as a coarse grid over the service area, together with the state of the vehicles. The policy is trained once by simulation over millions of synthetic days. It outperforms five benchmark policies, and it stays competitive with a specialized method that, unlike our policy, knows the customer locations in advance. The second study builds on this foundation and moves one decision level higher. A logistics service provider must decide every morning, before any demand is revealed, which customers it will subcontract to a common carrier and which it will serve with its own fleet. We introduce this problem as the vehicle routing problem with stochastic demands and outsourcing. To evaluate one possible partition of customers into outsourced customers and customers served by the own fleet, we need the expected cost of a complete stochastic routing problem, and a search that tests thousands of partitions cannot solve this inner problem from scratch every time. We show that the value function learned to control the vehicles can also serve as an instantaneous estimator of this cost. During training, each simulated day uses a new, randomly generated set of customers that varies in number, location, and expected demand. A single trained neural network can therefore estimate the routing cost of the customers that any partition keeps for the own fleet. To build the fixed-size observation that this value function reads, we replace the hand-crafted observation function of the first study with a graph attention network. In the first study, the observation kept detailed features only for a heuristically chosen subset of customers, and summarized the rest on a grid whose resolution had to be tuned. The graph attention network removes both limitations. It uses attention to score how relevant every customer and vehicle is to the active vehicle, and combines them into a single fixed-size vector, so that no customer is discarded by a rule and no grid resolution is needed. The learned routing policy reduces routing costs by 19.6% relative to the hand-crafted representation, which shows the value of learning it. The complete two-level method lowers total costs by 13.7% on average relative to the same method built on the hand-crafted representation, and it produces complete daily outsourcing and routing decisions within minutes, whereas methods without an offline-trained cost estimator need more than one hour. The third study takes the same question to electric mobility, where the scarce and uncertain resource is charging capacity instead of cargo space. A single electric vehicle (EV) must travel from an origin to a destination in the shortest possible time, over a distance long enough that its battery cannot cover the route, so it must recharge one or more times on the way. It recharges at public charging stations, where charging can be partial and the charging time is a nonlinear function of the station’s technology, so the amount of energy to take at each station is a decision, not a fixed quantity. Because the stations are public and shared with other EVs, they may be occupied on arrival, and the resulting waiting time is uncertain and revealed only when the EV reaches the station. The objective is to minimize the total trip time, which is the sum of driving, charging, and waiting. Recent applications now broadcast, in real time, a binary occupancy indicator for each public station, reporting whether it is currently busy or free, and we assume the EV receives these updates continuously for all stations. We model this as the EV shortest path problem with charging-station occupancy information, and formulate it as an MDP. Our aim is to study how this occupancy information can be folded into the routing and charging decisions, and how much it helps the EV decide better. The problem is hard for two reasons that compound. Even without any uncertainty, choosing which stations to visit and how much to charge under the battery limit is already an NP-hard resource-constrained shortest path problem. On top of this, the waiting times are uncertain, and the information process adds a feature the first two problems do not have, the continuous occupancy indicator, so the EV may need to revise its plan at any moment, even in the middle of a road segment. We solve the problem by online reoptimization, replanning the remaining stations and charging amounts each time new information arrives. A simulation-based preprocessing phase estimates, for each station, the expected waiting time as a function of the EV’s arrival time and of how recently the station changed its status. These estimates capture the temporary queue behavior that steady-state queueing formulas miss, which matters exactly when the real-time signal makes this behavior decision-relevant. The waiting time estimate for a station depends on when the EV would arrive there, but that arrival time is itself hard to compute, since the EV may stop to charge and wait at other stations on the way. A fast heuristic estimates these arrival times. With the waiting times fixed to these estimates, each replanning step reduces to a deterministic problem, which is solved exactly in a few seconds. Compared with a similar reoptimization method that does not use the occupancy indicator, and therefore learns whether a station is busy only on arrival, our method reduces waiting times by up to 95% and total trip duration by up to 18.5%. The three studies look different, but they share the same structure. In each one, the uncertainty is resolved only when the vehicle arrives, at a customer’s door or at a station’s queue. In each one, the offline phase produces exactly what the online phase needs. This is a dispatching policy in the first study, a cost estimator in the second, and a set of waiting time functions in the third. What changes across the three is only where the balance between the two phases falls, and this balance is set by the information process. The three studies thus span the range from almost fully offline to almost fully online, and together they support the central claim of the thesis, that the information process should decide how computation is scheduled. The main contributions follow from this. We introduce a family of three new routing problems, each with a proper MDP formulation. We develop a progression of state representations for routing problems of variable size, which goes from hand-crafted to learned and measures the value of learning under controlled conditions. We propose a reusable template that embeds offline-trained value functions as cost estimators inside a combinatorial search. We show that both paradigms, learned policies and online reoptimization, bring these problems within operational time budgets once the heavy computation is moved offline, and we identify the conditions under which each one is the right choice. Finally, we release public instance sets and code that support reproducibility and future comparison."],"dc:format":["application/pdf"],"dc:identifier":["INSERT-YOUR-LIBRARY-ID-HERE4157"],"dc:language":["en"],"dc:publisher":["École de technologie supérieure"],"dc:subject":["tournées de véhicules, incertitude, apprentissage par renforcement, processus décisionnels de Markov, sous-traitance, véhicules électriques, réoptimisation"],"dc:title":["Solving dynamic and stochastic vehicle routing problems by approximate dynamic programming"],"dc:type":["Electronic Thesis or Dissertation"],"thesis:degree_level":["phd"],"thesis:degree_name":["Thèse de doctorat électronique"],"thesis:institution_name":["École de technologie supérieure"]},"updated_at":"2026-11-25T22:14:23Z"}