Nepedia
Back to Discover
Fluent Reader
🔢

Nonlinear programming

math Maturity 11-13 Next article →

Math helps us find the best way to do things. This is called an optimization problem. We try to find the highest or lowest point of a goal. We must follow certain rules. These rules are called constraints.

Nonlinear programming
Nonlinear programming

In many problems, the rules and goals are straight lines. But in nonlinear programming, things are different. The rules or the goal might be curved instead. This makes the math much more interesting. It is a special part of mathematical optimization. It deals with problems that do not follow straight paths.

There are different types of these math puzzles. A feasible problem is one that has a real answer. An infeasible problem has no answer at all. This happens if the rules fight each other. An unbounded problem is when a goal can get better forever. In that case, there is no final best answer. Most real-world tasks are feasible problems. If a model is infeasible, it might be a failure. We can sometimes fix this by looking at how much rules are broken.

Nonlinear programming 3D
Nonlinear programming 3D

People use many ways to solve these curved puzzles. Some use analytic methods to find an exact spot. The Karush–Kuhn–Tucker conditions, or KKT, help find these spots. These conditions work best when the math is smooth. Without certain shapes, they only find a local optimum. A local optimum is a good spot, but not the best one. Most real cases use numeric methods instead. These methods are iterative, which means they use many small steps. They start at one point and move closer to the best spot.

Nonlinear programming
Nonlinear programming

These steps use different rules to move. Zero-order routines only look at the current values. First-order routines also look at gradients. A gradient shows the direction of change. Second-order routines also look at Hessians. These are more complex math tools. We can also use a method called branch and bound. This method divides the big problem into smaller parts. It uses approximations to find a lower bound on the cost. We can stop when we find an ε-optimal solution. This means the answer is close enough to the best.

This math is very useful in our world. One example is moving petroleum products. We must choose between pipelines, rail tankers, or ships. Each choice has different costs and capacities. These costs can change in sudden ways. Scientists also use it to fit data to models. They might look at a spectrum of peaks. They try to find the best fit for unknown parts. Many computer programs can do this work. ALGLIB, NLopt, and SciPy are some examples. They help us solve these hard, curved problems.

Nonlinear programming 3D
Nonlinear programming 3D
441 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:Nonlinear programming.svg
Nonlinear programming.svg
File:Nonlinear programming 3D.svg
Nonlinear programming 3D.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.