Skip to content

Instantly share code, notes, and snippets.

@azarnyx
Created July 28, 2019 17:20
Show Gist options
  • Save azarnyx/b39d6b5137b0fd12d76d796b2e5de703 to your computer and use it in GitHub Desktop.
Save azarnyx/b39d6b5137b0fd12d76d796b2e5de703 to your computer and use it in GitHub Desktop.
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