0

Is it normal to have different results between: Using a lambda expression And using def function To express constraints with scipy optimizer I ll add code later

1 Answers1

0

They should be identical unless you're (ab)using somewhat esoteric language features, e.g. pulling variables from outer scopes.

So most likely, there's an issue in your code.

ev-br
  • 24,968
  • 9
  • 65
  • 78