I am studying the Distribution Center Model Cloud in Anylogic. But the first problem I am encountering is,
Description: CustomDistribution cannot be resolved to a type. Location: Distribution Center/Main/discrete - Function The CustomDistribtuion is used in a function
int[] vals = new int[palletTypesNum+1]; for (int i = 0; i <= palletTypesNum; i++) vals[i] = i;
CustomDistribution distribution = new CustomDistribution(vals, weights, new java.util.Random());
What I have Tried???
Well, you need to use the constructors that code-complete shows you, either continuous, discrete or "options".
To learn how to use the constructors specifically, check the help: https://anylogic.help/advanced/functions/custom-distribution.html#creating-a-custom-distribution-programmatically