Quasi-Newton algorithm

Hello, can someone point me in the right direction of where I can find code examples relating to Quasi-Newton algorithm. I would like to set up a Taylor rule where the "optimal policy" searches the value of parameters that maximizes welfare.
Many thanks!
Many thanks!