File numerics/src/tools/min_merit.h

Go to the source code of this file

Functions for the min based merit function.

A set of routines used in the min reformulation of a CP

The min function is:

\[\begin{equation*} \mathbf{F}_{\mathrm{min}}(z) = \min( z, F(z)) \end{equation*}\]

Functions

void F_min(int n1, int n2, double *restrict z, double *restrict F, double *restrict Fmin)

Compute \(\mathbf{F}_{\mathrm{min}}(z)\), possibly in the mixed case.

Parameters
  • n1: number of equality constraints
  • n2: size of the complementary variables
  • z: input vector
  • F: value of F
  • Fmin: returned vector

void Jac_F_min(int n1, int n2, double *restrict z, double *restrict F, NumericsMatrix * nabla_F, NumericsMatrix * H)

Compute an element of Jac F_min.

Parameters
  • n1: number of equality constraints
  • n2: size of the complementarity variables
  • z: input vector
  • F: value of F
  • nabla_F: value of nabla_F
  • H: returned vector