【问题标题】:Did any one work with Branch using anylogic?有人使用anylogic 与Branch 合作吗?
【发布时间】:2020-06-23 19:51:34
【问题描述】:

我正在使用状态图为消费者行为建模。我使用“branch”来模拟两个选项:

1) 购买产品(如果存在)
2) 离开零售商(如果不存在)。

但是,当我模拟时,它告诉我 NullPointException Java.lang.NullPointerException。当我点击它时,我发现问题出在分支(如下图所示), 有没有人经历过这个,或者有没有人有一些解决方案? 下面的图片详细显示了我写的内容以及我得到的结果 谢谢^^

My statechart that represents the behaviour of consumer

what I got when I click on Consumer.java:321 in the console

What I got when I click on Consumer.java:408 in the console

【问题讨论】:

    标签: branch anylogic


    【解决方案1】:

    这意味着零售商为空......这意味着在那个时间点,你的变量零售商没有价值

    调试您的模型,目的是确保您为零售商变量赋值。

    【讨论】:

    • 感谢您的建议^^
    猜你喜欢
    • 2020-11-30
    • 1970-01-01
    • 2011-01-16
    • 1970-01-01
    • 2014-06-08
    • 2023-01-07
    • 1970-01-01
    • 1970-01-01
    • 2010-10-16
    相关资源
    最近更新 更多