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", "all"}) – Whether to compile for least squares optimization or scalar optimization. “auto” compiles based on the type of objective, “all” compiles all derivatives.

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