3. • 1. Steps we have taken in this project
• 2. How we design our improvement on
baseline controller
• 3. Design 1-5 for problem observed in baseline
controller
• 4. The reason why we didn’t use adaptive
controller
• 5. Overall outcome of our improvement
design
4. Steps we have taken in this project
• Observing the baseline controller’s problem in
different scenario .
• Thinking of ideas to improve the controller on
handling cargoes with higher efficiency.
• Doing countless experiments and observing
the outcomes whether they are positive or
negative .
5. How we design our improvement on
baseline controller
• We observed the baseline controller in
different scenarios and we noticed some
problems in the baseline controller . These
problems might lead to low efficiency in
delivering cargoes to stops in zone 1 and 2.
• So we thought of some ideas and tried to
implement it in customcontroller and
customcontrollerT2 to improve the baseline
controller for higher efficiency.
6. Design 1
• -Problem 1
• In baseline controller , the trucks waiting in
the terminal will only be delivered when their
loading size == their capacity or the tick
reached 400 n(where n =1,2,3,…) .Some trucks
may be sent away from the terminal even they
are only loaded with few or no cargoes .
• [picture of problem by running baseline
controller]
7. Design 1
• -Solution 1
• Therefore , for the tick smaller than 5000 , we set a waiting time
array for collecting the time the trucks stay in the terminal 1 and 2
for the controller to determine which trucks should go first .
• For the tick greater than 5000 , no waiting time array is needed
because no cargoes would be generated from terminal 1 , and
hence the cargoes in terminal loaded to trucks will be the last group
of cargoes.
• (the truck with longest waiting time most likely goes first)
• By doing countless experiment , we finally decided the waiting time
should be 200.
• -Outcome 1
• NO trucks with few cargoes or without any cargoes are sent away
from terminal 1 and 2 before tick >= 5000.
8. Design 2
• -Problem 2
• In baseline controller , we noticed that in the
scenario 5,many cargoes will be generated for
stop 6.So the trucks that are allocated in fixed
routes in baseline controller would greatly
increase the overall delivery time of cargoes.
• [picture of problem by running baseline
controller]
9. Design 2
• -Solution 2
• Find the stop with the greatest number of
cargoes waiting in the terminal 1 or 2 and
handle it by allocating more trucks if the
number of cargoes is rising very fast.
• -Outcome 2
• The overall delivery time is greatly reduced in
scenario 5.
10. Design 3
• -Problem 3
• In baseline controller , if there are more than one
trucks moving on the same route , the slower
trucks might slow down the faster trucks as the
faster trucks can’t overtake the slower trucks
ahead during delivering cargoes, and hence
would lower the delivering efficiency.
• [picture of problem by running baseline
controller]
11. Design 3
• -Solution 3
• If the number of cargoes for stop 4 is greater than the
capacity of slowest trucks waiting in the terminal 1,the
cargoes will be loaded to the slowest trucks
immediately.
• By doing countless experiment , we got the result of
using slower trucks to deliver cargoes with the number
greater than 240[which is the capacity of slowest truck]
is the most efficient way.
• -Outcome 3
• Fewer trucks are slowed by the slower trucks leading
ahead in the same route.
12. Design 4
• -Problem 4
• In baseline controller , ToT2Cargoes
sometimes might be loaded to trucks that are
set to route 2 and get returned since those
trucks can’t go to T2 by using the route 2.
• [picture of problem by running baseline
controller]
13. Design 4
• -Solution 4
• ToT2cargoes waiting in T1 will be loaded to
the trucks that was set to route 0 or 1.
• -Outcome 4
• It increases the efficiency of delivering cargoes
as no space will be wasted for loading
ToT2cargoes to trucks that were set to route 2
14. Design 5
• -Problem 5
• In baseline controller , no trucks are reserved
for fast delivery to terminal 2 . This problem
increases the overall delivery time of trucks as
the trucks in terminal 2 are left idle and might
go after the tick == 400 n (where n
=1,2,3,…)even with few cargoes or no cargoes.
• [picture of problem by running baseline
controller]
15. Design 5
• -Solution 5
• We set the controller always reserve fastest
idling trucks in the terminal 1 to deliver the
cargoes for the ToT2cargoes .
• -Outcome 5
• Fewer trucks in terminal 2 will be sent with
few or no cargoes .
16. Extra design
• Terminal 1
• We created handleS4Cargoes and anotherstop
class in terminal 1 for (some reasons)
• Terminal 2
• We created (new classes) in terminal 2 for
(some reasons)
17. Why we didn’t use adaptive controller
• After discussion , we decided not to utilize the
adaptive controller method as we thought
having a very general solution for custom
controller to control the trucks is already
enough . (Reason why multiple controllers
should not be used)
18. Result
• The controller we designed does improve the
outcome . By running “My simulation.java” we
got score for scenario 1,2,3,4,5 as below
respectively:
• And we got the final grand score:
19. To be added later
• Detailed pictures for easy understanding of
audience