Search code examples
anylogic

Optimization Experiment internal error (no model BUILD problems) - anylogic


I built my model and got Zero problems.
The Simulation Experiment is running without any errors (I'm using test/random values for the parameters)

However, when I run the Optimization Experiment, I'm getting the following 500 errors:

enter image description here

enter image description here

  • I have 246 int parameters in the optimization experiments ( I know too much but did not return any problem while building the model, I used the same number before in a different problem, and it worked totally fine)
  • I have defined 1756 constraints ( I know too much, but still under the limit of 65535 bytes and did not return any problem while building the model )

I have used root to define my constraints as below (maybe this is causing errors? but did not return any problem while building the model):

enter image description here


Solution

  • The reason behind this 500 Error (internal error) is the type of the parameter and the step size defined in the optimization experiment panel (Parameters).
    What I have found is as follows:
    if you use the int type for a parameter, its step size must be 1
    if you use the discrete type for a parameter, its step size can be any integer (for example 4)

    Even one parameter is not allowed to break this role, otherwise AnyLogic will return the same error message : 500 Error