简体   繁体   中英

How do I link a flight schedule from an excel sheet to my AnyLogic simulation agents?

I have an excel file with the flight timetable with the following columns: Airline, destination, departure time, flight number, check-in desk, gate number, departures, number of passengers.

I have created an agent containing this database in my model called flightTimetable.

In the 1st picture, I have set the conditions for the select Output for the agents to go to their designated check-in desk according to the database but this is not working. Any suggestions on what I can do?

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

The issue in your logis that the check-in desk parameter is a String (text) and not a number... so in your logic check in the select output you test if the check-in desk is =<\/code> to an integer yet it is a String. You can test this by chaning the logic check to agent.checkInDesk.equals("1")<\/code> for each of the numbers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM