constr_wrapper

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

Wrapper of the constraints assigned.

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

constraints (array [m x 1]) – Vector with the value of the m constraints in the point.