ArticleslgStudy

computer science

GPOPS-II

GPOPS-II is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand GPOPS-II rather than just read about it. In short: 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).

Key takeaways

  • GPOPS-II belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect GPOPS-II to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of GPOPS-II from memory before moving on to harder problems.

Reference excerpt

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).

Problem Formulation GPOPS-II is designed to solve multiple-phase optimal control problems of the following mathematical form (where P is the number of phases):

min⁡J=ϕ(𝐞(1),…,𝐞(P)) subject to the dynamic constraints 𝐲˙(p)(t)=𝐚(p)(𝐲(p)(t),𝐮(p)(t),t,𝐬),(p=1,…,P), the event constraints 𝐛min≤𝐛(𝐞(1),…,𝐞(P),𝐬)≤𝐛max, the inequality path constraints 𝐜min(p)≤𝐜(𝐲(p)(t),𝐮(p)(t),t,𝐬)≤𝐜max(p),(p=1,…,P), the static parameter constraints 𝐬min≤𝐬≤𝐬max, and the integral constraints 𝐪min(p)≤𝐪(p)≤𝐪max(p),(p=1,…,P), where 𝐞(p)=[𝐲(p)(t0(p)),t0(p),𝐲(p)(tf(p)),tf(p),𝐪(p)],(p=1,…,P), and the integrals in each phase are defined as qi(p)=∫t0(p)tf(p)gi(p)(𝐲(p)(t),𝐮(p)(t),t,𝐬)dt,(i=1,…,nq(p),p=1,…,P). The event constraints can contain any functions that relate information at the start and/or terminus of any phase (including relationships that include both static parameters and integrals) and that the phases themselves need not be sequential. It is noted that the approach to linking phases is based on well-known formulations in the literature.

Method Employed by GPOPS-II GPOPS-II uses a class of methods referred to as hp-adaptive Gaussian quadrature collocation where the collocation points are the nodes of a Gauss quadrature (in this case, the Legendre-Gauss-Radau [LGR] points). The mesh consists of intervals into which the total time interval t(p)∈[t0(p),tf(p)] in each phase is divided, and LGR collocation is performed in each interval. Because the mesh can be adapted such that both the degree of the polynomial used to approximate the state 𝐲(p)(t) and the width of each mesh interval can be different from interval to interval, the method is referred to as an hp-adaptive method (where "h" refers to the width of each mesh interval, while "p" refers to the polynomial degree in each mesh interval). The LGR collocation method has been developed rigorously in Refs., while hp-adaptive mesh refinement methods based on the LGR collocation method can be found in Refs., .

Development The development of GPOPS-II began in 2007. The code development name for the software was OptimalPrime, but was changed to GPOPS-II in late 2012 in order to keep with the lineage of the original version of GPOPS which implemented global collocation using the Gauss pseudospectral method. The development of GPOPS-II continues today, with improvements that include the open-source algorithmic differentiation package ADiGator and continued development of hp-adaptive mesh refinement methods for optimal control.

Applications of GPOPS-II GPOPS-II has been used extensively throughout the world both in academia and industry. Published academic research where GPOPS-II has been used includes Refs. where the software has been used in applications such as performance optimization of Formula One race cars, Ref. where the software has been used for minimum-time optimization of low-thrust orbital transfers, Ref. where the software has been used for human performance in cycling, Ref. where the software has been used for soft lunar landing, and Ref. where the software has been used to optimize the motion of a bipedal robot.

References

External links GPOPS-II home page GPOPS-II Journal Article Appearing in the ACM Transactions on Mathematical Software Website of Anil V. Rao

Worked examples

Example 1 — a first encounter with GPOPS-II

Start with the simplest possible case. Write down what GPOPS-II claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to GPOPS-II before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about GPOPS-II ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of GPOPS-II

In research
GPOPS-II appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses GPOPS-II in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
GPOPS-II is common in secondary-school and first-year university syllabi. It links to neighbouring topics Mathematical optimization software, Mathematical software, Numerical software, so understanding it makes those chapters shorter.
In everyday life
Look for GPOPS-II outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “GPOPS-II” →

How to study GPOPS-II in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what GPOPS-II means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain GPOPS-II out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is GPOPS-II in simple terms?

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…

Why does GPOPS-II matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study GPOPS-II?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on GPOPS-II.

Tags

  • Mathematical optimization software
  • Mathematical software
  • Numerical software
  • Optimal control

Keep exploring