Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
anylogic では、いくつかの変数 (2 つ以上) があり、そのうちのどれが最大値かを知りたいですか? どうやってやるの?最大変数の名前はどこに保存できますか?
いくつかの値の最大値を取得することは、AnyLogic の問題ではなく、stackoverflow におそらく何百もの答えがある一般的なコーディングの問題です。
AnyLogic では、すべての変数を統計オブジェクトに追加できます。次に、呼び出しmyStatisticsObject.max()て最大値を取得します。
myStatisticsObject.max()
それを新しい変数に保存するには、呼び出しますnewVariable = mtStatistics.max()
newVariable = mtStatistics.max()
乾杯