Created
July 28, 2019 17:20
-
-
Save azarnyx/b39d6b5137b0fd12d76d796b2e5de703 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sides1 = np.arange(0, num_sides1)+1. | |
sides2 = np.arange(0, num_sides2)+1. | |
cons21 = ({'type': 'eq', 'fun': lambda p: sides1.dot(p) - mean1}) | |
cons22 = ({'type': 'eq', 'fun': lambda q: sides2.dot(q) - mean2}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment