mex.simplex.problem_definition.convert_min¶
-
mex.simplex.problem_definition.
convert_min
(matrix)[source]¶ This function multiplies by -1 the objective function for maximization problems. This is because if the problem to be solved is maximization then it is analogue to solve the problem -minimization.
- Parameters
matrix (numpy array) – matrix to be updated.
- Returns
matrix multiplied by -1.
- Return type
matrix (numpy array)