ArticleslgStudy

computer science

Affine scaling

Affine scaling 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 Affine scaling rather than just read about it. In short: In mathematical optimization, affine scaling is an algorithm for solving linear programming problems. Specifically, it is an interior point method, discovered by Soviet mathematician I.

Affine scaling — main illustration
Affine scaling — illustration

Key takeaways

  • Affine scaling 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 Affine scaling to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Affine scaling from memory before moving on to harder problems.

Reference excerpt

In mathematical optimization, affine scaling is an algorithm for solving linear programming problems. Specifically, it is an interior point method, discovered by Soviet mathematician I. I. Dikin in 1967 and reinvented in the U.S. in the mid-1980s.

History Affine scaling has a history of multiple discovery. It was first published by I. I. Dikin at Energy Systems Institute of Russian Academy of Sciences (Siberian Energy Institute, USSR Academy of Sc. at that time) in the 1967 Doklady Akademii Nauk SSSR, followed by a proof of its convergence in 1974. Dikin's work went largely unnoticed until the 1984 discovery of Karmarkar's algorithm, the first practical polynomial time algorithm for linear programming. The importance and complexity of Karmarkar's method prompted mathematicians to search for a simpler version. Several groups then independently came up with a variant of Karmarkar's algorithm. E. R. Barnes at IBM, a team led by R. J. Vanderbei at AT&T, and several others replaced the projective transformations that Karmarkar used by affine ones. After a few years, it was realized that the "new" affine scaling algorithms were in fact reinventions of the decades-old results of Dikin. Of the re-discoverers, only Barnes and Vanderbei et al. managed to produce an analysis of affine scaling's convergence properties. Karmarkar, who had also come up with affine scaling in this timeframe, mistakenly believed that it converged as quickly as his own algorithm.

Algorithm Affine scaling works in two phases, the first of which finds a feasible point from which to start optimizing, while the second does the actual optimization while staying strictly inside the feasible region. Both phases solve linear programs in equality form, viz.

minimize c ⋅ x subject to Ax = b, x ≥ 0. These problems are solved using an iterative method, which conceptually proceeds by plotting a trajectory of points strictly inside the feasible region of a problem, computing projected gradient descent steps in a re-scaled version of the problem, then scaling the step back to the original problem. The scaling ensures that the algorithm can continue to do large steps even when the point under consideration is close to the feasible region's boundary. Formally, the iterative method at the heart of affine scaling takes as inputs A, b, c, an initial guess x0 > 0 that is strictly feasible (i.e., Ax0 = b), a tolerance ε and a stepsize β. It then proceeds by iterating

Let Dk be the diagonal matrix with xk on its diagonal. Compute a vector of dual variables: wk=(ADk2AT)−1ADk2c. Compute a vector of reduced costs, which measure the slackness of inequality constraints in the dual: rk=c−ATwk. If rk>0 and 𝟏TDkrk<ε, the current solution xk is ε-optimal. If −Dkrk≥0, the problem is unbounded. Update xk+1=xk−βDk2rk‖Dkrk‖

Initialization Phase I, the initialization, solves an auxiliary problem with an additional variable u and uses the result to derive an initial point for the original problem. Let x0 be an arbitrary, strictly positive point; it need not be feasible for the original problem. The infeasibility of x0 is measured by the vector

v=b−Ax0. If v = 0, x0 is feasible. If it is not, phase I solves the auxiliary problem

minimize u subject to Ax + uv = b, x ≥ 0, u ≥ 0. This problem has the right form for solution by the above iterative algorithm, and

(x01) is a feasible initial point for it. Solving the auxiliary problem gives

(x∗u∗). If u* = 0, then x* ≥0 is feasible in the original problem (though not necessarily strictly interior), while if u* > 0, the original problem is infeasible.

Analysis While easy to state, affine scaling was found hard to analyze. Its convergence depends on the step size, β. For step sizes β ≤ ⁠2/3⁠, Vanderbei's variant of affine scaling has been proven to converge, while for β > 0.995, an example problem is known that converges to a suboptimal value. Other variants of the algorithm have been shown to exhibit chaotic behavior even on small problems when β > ⁠2/3⁠.

Notes

References

Further reading Adler, Ilan; Monteiro, Renato D. C. (1991). "Limiting behavior of the affine scaling continuous trajectories for linear programming problems" (PDF). Mathematical Programming. 50 (1–3): 29–51. doi:10.1007/bf01594923. S2CID 15748327. Saigal, Romesh (1996). "A simple proof of a primal affine scaling method" (PDF). Annals of Operations Research. 62: 303–324. doi:10.1007/bf02206821. hdl:2027.42/44263. S2CID 14046399. Tseng, Paul; Luo, Zhi-Quan (1992). "On the convergence of the affine-scaling algorithm" (PDF). Mathematical Programming. 56 (1–3): 301–319. doi:10.1007/bf01580904. hdl:1721.1/3161. S2CID 13714272.

External links "15.093 Optimization Methods, Lecture 21: The Affine Scaling Algorithm" (PDF). MIT OpenCourseWare. 2009. Mitchell, John (November 2010). "Interior Point Methods". Rensselaer Polytechnic Institute. "Lecture 6: Interior point method" (PDF). NCTU OpenCourseWare. Archived from the original (PDF) on 2016-10-11. Retrieved 2016-02-06.

Illustrations

Affine scaling: The affine scaling method is an interior point method, meaning that it forms a trajectory of points strictly inside the feasible region of a linear program (as opposed to the simplex algorithm, which walks the corners of the feasible region).
The affine scaling method is an interior point method, meaning that it forms a trajectory of points strictly inside the feasible region of a linear program (as opposed to the simplex algorithm, which walks the corners of the feasible region).

Worked examples

Example 1 — a first encounter with Affine scaling

Start with the simplest possible case. Write down what Affine scaling 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 Affine scaling 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 Affine scaling 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 Affine scaling

In research
Affine scaling 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 Affine scaling 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
Affine scaling is common in secondary-school and first-year university syllabi. It links to neighbouring topics Linear programming, Optimization algorithms and methods, Soviet inventions, so understanding it makes those chapters shorter.
In everyday life
Look for Affine scaling 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 “Affine scaling” →

How to study Affine scaling in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Affine scaling 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 Affine scaling out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Affine scaling in simple terms?

In mathematical optimization, affine scaling is an algorithm for solving linear programming problems. Specifically, it is an interior point method, discovered by Soviet mathematician I.

Why does Affine scaling 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 Affine scaling?

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 Affine scaling.

Tags

  • Linear programming
  • Optimization algorithms and methods
  • Soviet inventions

Keep exploring