forked from huevosabio/cs341
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdidi.m
More file actions
27 lines (21 loc) · 649 Bytes
/
Copy pathdidi.m
File metadata and controls
27 lines (21 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% runs the didi problem
clear all; close all; clc;
load('didi.mat')
RoadNetwork.T = T;
RoadNetwork.RoadGraph = RoadGraph;
%RoadNetwork.RoadCap = RoadCap;
RoadNetwork.TravelTimes = TravelTimes;
Passengers.FlowsOut = FlowsOut;
Passengers.FlowsIn = FlowsIn;
Flags.milpflag = 0;
Flags.congrelaxflag = 0;
Flags.sourcerelaxflag = 0;
Flags.cachedAeqflag = 0;
RebWeight = 5.0;
[cplex_out, Data, FindFunctions]=SolveRebalancing(RoadNetwork,RebWeight,Passengers,Flags);
RebIn = Data.RebIn;
RebOut = Data.RebOut;
StayIn = Data.StayIn;
StayOut = Data.StayOut;
nvehs = Data.nvehs;
save('LowerBoundData', 'RebIn','RebOut', 'StayIn', 'StayOut', 'nvehs')