Requirements Research Report setting background: Shijiazhuang Railway University basic teaching building is a 18-storey building, its interior equipped with 4 elevators, students and teachers use elevator peak time relative concentration in each class/class, so the use of elevators with sudden and heavy load characteristics, so the design of reasonable elevator scheduling algorithm, Avoid the "bus", that is, the elevator as a bus, it from the bottom to the top, stop at each floor, open the door, let people in and out, and then close the door, continue to move forward. After reaching the top level, it will go down. Can greatly improve the efficiency of the elevator. The elevator configuration of the basic teaching building of Shijiazhuang Railway University is as follows: Number of elevators: 4 elevators with a maximum capacity of 15 people elevator through each floor time: 3 seconds Elevator open/close time 12 seconds average passenger weight: 70 kg (max. 120 kg, min. 45 kg) passengers out of the elevator time: 6 seconds elevator set up as follows: 1. When no one took the elevator, the elevator was quite steady. 2. When the signal is received, the elevator moves to the floor and stops. 3. When the elevator arrives at the destination floor and stops, the passenger presses the door button, which can arouse the opening function of the elevator in advance. However, when no passenger presses the door button, the elevator will automatically open after 1 seconds of stopping. 4. When all passengers are in the elevator, ready to let the elevator start to run, the passenger press the closing button, so that the elevator door closed early to enter the state of operation. Set the elevator automatic closing time to 8 seconds. 5. Press the elevator external up button to indicate a request, when the button is pressed, when and only if the elevator arrives at the floor and the direction of operation is upward, the elevator stops and opens automatically, and responds to the request after the request is answered, canceling the request signal. (In this case, if the elevator is in a layer larger than the number of passengers upstairs, it will not respond for a while, and then back down.) ) 6. Press the elevator external down button to indicate downstairs request, when this button is pressed, when and only when the elevator reaches the floor and the direction of operation is down, the elevator stops and opens automatically, and responds to the request after the request is answered, canceling the request signal. (In this case, if the elevator layer is less than the number of passengers upstairs, it will be temporarily unresponsive, and then respond when it is upward.) Some algorithms for querying on the network: 1. First-come-first-serve algorithm (FCFS) 2. Shortest search floor time First algorithm (SSTF) 3. Scanning algorithm (scan) 4.LOOK algorithm 5.SAFT algorithm my elevator control algorithm idea: According to the order of the user request, the floor number is sequentially deposited into the array, Respond in chronological order (in which you need to consider the number of floors the elevator is in and the number of floors the passenger is in.) ), during the response process, scans the array during the requested run-through of the floors, docked. Subtract the corresponding floor in the array, and then loop through the process after the run is complete.
Demand report of Iron demand elevator