Advertisement
Guest User

Untitled

a guest
Nov 29th, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. consList = []
  2. for y in range(4):
  3.     newConstraint = constraint(y)
  4.     consList.append(NonlinearConstraint(newConstraint.constraintFunction(), 0, 1, keep_feasible = True))
  5. result = scipy.differential_evolution(objFunction, myBounds, constraint = consList )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement