Question: i want CPLEX mod & dat code,the objective function , constrains and sheet data are clear i n the picture....Solving the Vehicle Routing Problem (
i want CPLEX mod & dat code,the objective function constrains and sheet data are clear the picture....Solving the Vehicle Routing Problem Using CPLEX OPL and External Data
Experiment Overview
This experiment introduces you solving a Vehicle Routing Problem using CPLEX OPL. The goal minimize the total travel cost for a fleet vehicles serving multiple customers, considering vehicle capacities and customer demands. You will also learn how integrate external data stored Excel sheet into your OPL model.
Prerequisites
Before starting this experiment, you should have:
Familiarity with Linear Programming and Optimization.
Basic understanding CPLEX Optimization Studio.
Knowledge the problem structure.
Basic experience with Microsoft Excel.
Mathematical Formulation
Indices and Sets:
: Set nodes, where
with representing the depot.
: Set vehicles.
Parameters:
: Distance traveling from node
node
: Demand customer
: Capacity each vehicle.
: A sufficiently large number for subtour elimination
Decision Variables:
ijv
: Binary variable indicating whether vehicle
travels from node
node
: Binary variable indicating whether customer
served vehicle
: Continuous variable representing the cumulative load node
for subtour elimination
Building and Running the Model
Combine the mod and dat files a CPLEX project.
Load the Excel data into the model.
Solve the model and analyze the results
Minimize
Constraints
Vehicle Flow Conservation: Each vehicle that enters a node must also
leave
AAiinN,vinV
Customer Visit Constraints: Each customer visited exactly once
vehicle.
AAiin
Depot Constraints: Each vehicle starts and ends the depot.
AAvinV
AAvinV
Capacity Constraints: Total demand each route must not exceed the
vehicle's capacity.
AAvinV
Subtour Elimination Constraints: Ensure subtours exist using
cumulative demand variables.
AAi,jinvinV,
Binary and nonnegativity Constraints.
Customers: Contains customer demands.
Distance Matrix: Contains pairwise distances costs.
Vehicles: Contains vehicle capacities.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
