> cons=[] > for ii in range(len(constraint)): > cons.append({'type': 'eq', 'fun': lambda s: ((constraint[ii])(*s))}) > cons=tuple(cons) >
What do you get after that loop? Do you really get the same value for cons as when you create it manually? Sébastien -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.