I thought this textbook as really good for teaching the theory as well as including psuedo code to program in Matlab or your favorite programming language.
Nonlinear Programming: Theory and Algorithms https://www.amazon.com/dp/0471486000/ref=cm_sw_r_cp_apa_i_a.U7Db32H0S7Q