f_constant

compas_tno.problems.f_constant(variables, M)[source]

Constant or feasible objective function f=1

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.