f_bestfit

compas_tno.problems.f_bestfit(variables, problem)

Objective function to minimise the vertical squared distance to a given target

Parameters:
variablesarray (k x 1)

Variables to pass to the function.

MProblem

The class with necessary matrices, or arguments, to compute the objective function

Returns:
ffloat

The value of the objective function.