GuidesAPI Reference
Guides

Configuration

The Configuration section contains a list of settings you can use to tweak the algorithm's default behavior.

📘

Note

This is part of the POST request body in the /problems and /async/problems endpoints. See the API specification.

The termination settings enable you to control the runtime of the optimization algorithm and when to stop. See the following example:

{
  "configuration": {
    "termination": {
      "maxTime": 2,
      "stagnationTime": 1
    }
  },
...
}
  • Max time

    Specify the maxTime parameter to define the maximum time, in seconds, the algorithm is allowed to run for solving the problem. If the algorithm cannot find any solution within the given maxTime, it stops when maxTime is reached.

  • Stagnation time

    Specify the parameter stagnationTime, in seconds, to stop the optimization algorithm if it cannot find an improved solution over a period of stagnationTime.