gpops-ii (pronounced "gpops 2") is a general-purpose matlab software for solving continuous optimal control problems using hp-adaptive gaussian quadrature collocation and sparse nonlinear programming. the acronym gpops stands for "general purpose optimal control software", and the roman numeral "ii" refers to the fact that gpops-ii is the second software of its type (that employs gaussian quadrature integration).