Changed minimize to broyden1