d_fobj

compas_tno.problems.d_fobj(fobj, x0, eps, *args)[source]

Gradient approximated by hand using finite differences.

Parameters
  • fconstr (callable) – Function with the constraints

  • x0 (array) – Point to compute the pertubation

  • eps (float) – Size of the pertubations

Returns

df0dx (array) – Gradient of the function computed using finite diferences