Skip to content

Instantly share code, notes, and snippets.

@azarnyx
Created July 28, 2019 17:19
Show Gist options
  • Save azarnyx/1972ee18a888f5023a28fa950ae0a5ec to your computer and use it in GitHub Desktop.
Save azarnyx/1972ee18a888f5023a28fa950ae0a5ec to your computer and use it in GitHub Desktop.
cons01 = ({'type': 'eq', 'fun': lambda p: np.sum(p) - 1.})
cons02 = ({'type': 'eq', 'fun': lambda p: np.sum(p) - 1.})
bnds1 = tuple([(0, None)]*(num_sides1))
bnds2 = tuple([(0, None)]*(num_sides2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment