This is a version of the port library (also known as NL2SOL routine) for nonlinear optimization (by David M. Gay)