March 2018
Beginner to intermediate
306 pages
9h 54m
English
You need to complete the following steps:
import cv2import numpy as np
m = 10n = 10constraints_mat = np.random.randn(m, n+1)weights = np.random.randn(1, n)
solution = np.array((n, 1), np.float32)res = cv2.solveLP(weights, constrains_mat, solution)if res == cv2.SOLVELP_SINGLE: print('The problem has the one solution')elif res == cv2.SOLVELP_MULTI: print('The problem has the multiple solutions')elif res == cv2.SOLVELP_UNBOUNDED: print('The solution is unbounded')elif res == cv2.SOLVELP_UNFEASIBLE: print('The problem doesnt\'t ...Read now
Unlock full access