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
.All variables with bound
.
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:

Fig. 1 Illustration of the conversion from standard form primal problem to dual problem.#
The primal objective function coefficients,
, are the dual constraint parameters.The primal constraint parameters,
, are the dual objective function coefficients.The primal constraints in
form lead to dual variables .The primal constraints in
form lead to dual variables which are unconstrained / free.The primal variables
lead to dual constraints of form.The constraint coefficient
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.