I would very much appreciate any help I can get for the following. I have an excel spreadsheet that contains projections of precipitation. The sheet has two columns (day and precipitation) and there are over 20,000 rows, i.e. over 20,000 days of precipitation. I loaded this sheet onto AnyLogic. I am using a system dynamics model and have a dynamic variable called Rainfall. For each day of the simulation I want Rainfall to pull the value from the loaded database, but don't know how to link the dynamic variable to the database. I have already tried the following: inserting a tableFunction named ProjectedRainfall and its values are "loaded from database." For "argument column" I chose "day" and for "value column" I chose precipitation. I then inserted a function named getrainfall and under function body I wrote "return ProjectedRainfall(time()). I then added a dynamic variable that is set to equal "getrainfall(time())". This generates an error that states "The method getrainfall() in the Type Main is not applicable for the arguments (double)." Any ideas on what I may be doing wrong or alternatives to how I could go about linking the dynamic variable to the database? Thank you for the help!





