我不断遇到下面的错误,在我的个人代理中,动态变量被 main 引用来计算采用率,所以我不明白为什么它不会被解析?我已经清楚地定义了动态变量的操作。我不知道如何解决这个问题
demand(getMonth()) / 200.0;
Error during model creation:
ERROR during variable generation:
Couldn't parse expression for adoptionFraction - Dynamic Variable: syntax error.
Please check expressions of this variable.
java.lang.RuntimeException: ERROR during variable generation:
Couldn't parse expression for adoptionFraction - Dynamic Variable: syntax error.
Please check expressions of this variable.
at bass_diffusion_abm.Main.<init>(Main.java:521)
at bass_diffusion_abm.Simulation.createRoot(Simulation.java:156)
at bass_diffusion_abm.Simulation.createRoot(Simulation.java:1)
所以我尝试添加 main.demand 和 main.getMonth() 但都不起作用