Duality: conversion summary

Duality: conversion summary#

This is a summary of the recommended approach to convert a primal problem into its dual problem.

First, you convert the primal problem to a standard form:

  • Minimisation.

  • All constraints of the form axb.

  • All variables with bound 0.

Second, you convert the standard-form primal problem into the dual problem, as illustrated in Fig. 1 and written out in the bullet point list below:

../_images/primal_dual.jpg

Fig. 1 Illustration of the conversion from standard form primal problem to dual problem.#

  • The primal objective function coefficients, cn, are the dual constraint parameters.

  • The primal constraint parameters, bm, are the dual objective function coefficients.

  • The primal constraints in form lead to dual variables ym0.

  • The primal constraints in = form lead to dual variables ym which are unconstrained / free.

  • The primal variables xn0 lead to dual constraints of form.

  • The constraint coefficient amn corresponds to the m-th constraint and n-th variable in the primal problem. It corresponds to the n-th constraint and m-th variable in the dual problem.