desc.objectives.ObjectiveFunction.compile

ObjectiveFunction.compile(mode='auto', verbose=1)Source

Call the necessary functions to ensure the function is compiled.

Parameters:
  • mode ({"auto", "lsq", "scalar", "bfgs", "all"}) – Whether to compile for least squares optimization or scalar optimization. “auto” compiles based on the type of objective, either scalar or lsq “bfgs” compiles only scalar objective and gradient, “all” compiles all derivatives.

  • verbose (int, optional) – Level of output.