Table Data input from excel to system dynamics stock in Anylogic

85 views Asked by At

I have a 2 column table data on excel for energy consumption (representing consumption per month). I want to input that data to a stock representing the consumption of the SME in my system dynamics model on AnyLogic. I used the table function to do so, but I am receiving an error saying:''Type mismatch: cannot convert from TableFunction to double''.

So anyone had some ideas on how can I input this data as a stock and generate results on graphs similarly?

1

There are 1 answers

2
Yashar Ahmadov On

Judging by the error message, you are using the full TableFunction as parameter. Instead you should use yourTableFunctionName.get(double x) in your model to refer to specific stock value.