mex.simplex.problem_definition.add_cons

mex.simplex.problem_definition.add_cons(matrix)[source]

Checks if 1 extra constraint can be added to the matrix, this means that there are at least two rows of all 0 elements. If this condition is not satisfied, our program will not allow the user to add additional constraints.

Parameters

matrix (numpy array) – matrix to be reviewed.

Returns

True or False indicating whether 1+ constraints can be added.

Return type

Flag (bool)