f_bestfit
- compas_tno.problems.f_bestfit(variables, M)[source]
Objective function to minimise the vertical squared distance to a given target
- Parameters
variables (array (k x 1)) – Variables to pass to the function.
M (
Problem
) – The class with necessary matrices, or arguments, to compute the objective function
- Returns
f (float) – The value of the objective function.