**Linear Programming is mathematical modelling of the real world problems that can be solved by quantative methods where decision variables are unknowns to be obtained, objective/goal function is formulation of decision variables, optimal solution is the result of the objective function which is the optimal value and constraints are the physical limitations of the system. The main assumptions of a linear programming problems are; **

- There is a Single objective; minimization or maximization
- All variables are continues
- Objective and constraints are linear
- All decision variables are nonnegative (as negative is not possible in real world).

There are several methods to solve the linear programming problems; Simplex, Criss-cross, Ellipsoid, Protective, etc. Simplex is a popular algorithm. It has iterative approach by improving the value of the objective function at each step.

**Simplex (Standard) (see Example-1)**

Main steps of Simplex solution;

- Establishing a mathematical model of the real world problem (representing as formulas)
- Checking negative RHS (Right Hand Sides). If any, correct it by multiplying all coefficient by -1 and changing the inequality type. For example; 1x1 - 2x2 <= -5 becomes -1x1 + x2 >= 5 after correction.
- Transforming the inequalities to equlaties for constraints (Standard Form - representing as formulas). In most of the cases, constraints are in inequality form. Therefore, they need to be trasformed to the equality form.
- Slack variables are added for <= constraints with default legend “s”
- Artificial variables are added for = and >= constraints with default legend “a”
- Extra variables are added for >= constraints with default legend “e”

Decision variables are named as Non Basic Variables (default legend is “x”) while others are named as Basic variables. Basic variables include slack variables, artificial variables and extra variables. The basic variables are needed to transform a problem to standard form;

- Creating initial matrix from Standard Form.
- Selecting the variable to enter (incoming variable)
- Selecting the variable to leave (outgoing variable)
- Pivoting
- Checking feasibility and degeneration
- Repeat the steps or terminate

There are four possibilities at the end;

- Single optimal solution, Best Feasable Solution (BFS), OPTIMAL
- Multiple solutions; ALTERNATIVES
- No feasable solution; INFEASABLE
- infinite number of solution; UNBOUNDED

**Two Phase Simplex**

If all constraints are in <= form, the problem can be solved in one phase as outlined above. If even one contraint is in “>=” or “=” form, two phase Simplex rules are followed. In the first phase, an auxiliary problem created from the problem is solved first to find out if it is feasable or not. If it is feasable, orijinal objective function is taken into the calculations in the second phase.

**Revised Simplex (see Example-2)**

The Revised Simplex is different implementation of the Simplex. It provides computational effectiveness and less memory usage for the large problems. The Revised Simplex follows the Simplex Solution steps but initial table is an Unity Matrix at the beginning.

One phase and two phase Revised Simplex methodes are same as Simplex.

**Dual Problem**

A linear programming problem is a Primal problem. It can be converted to Dual of the problem to obtain the upper bound of the Primal’s optimal.

Main steps of converting to Dual:

- Taking transpose of Constraints Coeffs matrix (excluding RHS column)
- Converting “>=” to “<=” or vise versa
- Interchanging Objective function Coeffs and RHS values

After that, the Dual Problem is solved by Simplex or Revised Simplex (both one phase or two phase)

**Implementation in SimpleLPsolver**

**Simplex Solver (see Example-1)**

The simplex method for maximization problems is used. Therefore, minimization problems are converted to maximization problems. Following steps are followed;

- Check the goal function for zero coefficients for all variables.
- Check and fix the constraints for zero coefficients for all variables.
- Check and fix redundant constraints.
- Check and fix negative RHS values.
- Continue with Single Phase procedure if all constraints are <=, otherwise switch to Two Phase procedure.
- Single Phase Simplex procedure;
- Add slack variables (s) to bring all constraints into equality ( =) form.
- Create initial simplex table as shown below;

- Solve the problem in accordance with maximization problem criterias.
- Two Phase Simplex procedure;
- Add slack variables (s), artificial variables (a) and excess variables (e) to bring all constraints into equality ( =) form.
- Create initial two phase simplex table as shown below;

- Calculate the initial values for w row for Basic Feasible Solution (BFS). Z row is not needed for this stage but it is useful since original objective function will be in the appropriate form for the second phase.
- Solve the problem in accordance with maximization problem criterias as Phase 1.
- If the BFS is found at the end of Phase 1, eliminate w row and artificial variables from the table.
- Continue to solve the problem in accordance with maximization problem criterias as Phase 2.

**Revised Simplex Solver (see Example-2)**

The revised simplex method for minimization problems is used. Therefore, maximization problems are converted to minimization problems. Following steps are followed;

- Check the goal function for zero coefficients for all variables.
- Check and fix the constraints for zero coefficients for all variables.
- Check and fix redundant constraints.
- Check and fix negative RHS values.
- Continue with Single Phase procedure if all constraints are <=, otherwise switch to Two Phase procedure.
- Single Phase Simplex procedure;
- Add slack variables (s) to bring all constraints into equality ( =) form.
- Create initial revised simplex table as shown below;

- Create Basis Inverse (B
^{-1 ) matrix with artificial variables as shown below (initially unity matrix);}

- Solve the problem in accordance with minimization problem criterias.
- Two Phase Revised Simplex procedure;
- Add slack variables (s), artificial variables (a) and excess variables (e) to bring all constraints into equality ( =) form.
- Create initial two phase revised simplex table as shown below;

- Create Basis Inverse (B
^{-1 ) matrix with artificial variables as shown below (initially unity matrix);}

- Calculate the initial values for w row for Basic Feasible Solution (BFS). Z row is not needed for this stage but it is useful since original objective function will be in the appropriate form for the second phase.
- Solve the problem in accordance with maximization problem criterias as Phase 1.
- If the BFS is found at the end of Phase 1, eliminate w row-column and artificial variables from the table.
- Continue to solve the problem in accordance with maximization problem criterias as Phase 2.

**Dual Simplex Solver**

Finds the Dual problem by taking transpose of Constraints Coeffs matrix (excluding RHS column), converting “>=” to “<=” or vise versa and interchanging Objective function Coeffs and RHS values.

After that, the Dual Problem is solved by Simplex (both one phase or two phase) method as described above.

**Dual Revised Simplex Solver**

Finds the Dual problem by taking transpose of Constraints Coeffs matrix (excluding RHS column), converting “>=” to “<=” or vise versa and interchanging Objective function Coeffs and RHS values.

After that, the Dual Problem is solved by Revised Simplex (both one phase or two phase) method as described above.

Guestbook | |

Name: speebrish E-mail: idowsoola@adann.xyz Sent: 05/11/2021 01:09:32 am <a href=https/vskamagrav.com/>canada kamagra Name: Mark Rouge E-mail: markrouge@tiscali.it Sent: 05/09/2021 10:10:17 am In SimpleLPSolver YOU MUST INCREASE NUMBER OF DECISIONS VARIABLE TO 2500 AT LEAST (x 7500 constraints at least). You must also insert support for integer/binary programming with Branch&Price (=Branch&Bound+Plan Cuts [Gomor&Others]). Please make a new version (otherwise it is a toy) !!! I Suggest to add also sentitivity analysis. Name: enikpujen E-mail: ugujikuqe@elesa.sibicomail.com Sent: 04/17/2021 03:13:11 am http://slkjfdf.net/ - Alekewp <a href="http://slkjfdf.net/">Emuvivu</a> hsg.oibv.tanels.com.jzg.dy http://slkjfdf.net/ Name: eyozugorun E-mail: esgatomeh@elesa.sibicomail.com Sent: 04/17/2021 03:04:32 am http://slkjfdf.net/ - Euyamoe <a href="http://slkjfdf.net/">Ucaaugiz</a> cle.hwdz.tanels.com.huv.nu http://slkjfdf.net/ Name: ecopixucuiib E-mail: abapehax@elesa.sibicomail.com Sent: 04/17/2021 02:56:09 am http://slkjfdf.net/ - Euyaxuhuk <a href="http://slkjfdf.net/">Axeklesa</a> ffq.ezgw.tanels.com.ihx.ms http://slkjfdf.net/ Name: aguoroleh E-mail: eayhuv@elesa.sibicomail.com Sent: 04/17/2021 02:47:48 am http://slkjfdf.net/ - Bofuhixuz <a href="http://slkjfdf.net/">Ozilejink</a> mxr.tdku.tanels.com.kog.fn http://slkjfdf.net/ Name: igitazerookp E-mail: mimpaber@elesa.sibicomail.com Sent: 04/17/2021 02:39:15 am http://slkjfdf.net/ - Obowubqiq <a href="http://slkjfdf.net/">Ekinuduk</a> jiq.mylk.tanels.com.dtz.ia http://slkjfdf.net/ Name: uhukegeriyuue E-mail: ifffija@elesa.sibicomail.com Sent: 04/17/2021 02:30:35 am http://slkjfdf.net/ - Alefobegi <a href="http://slkjfdf.net/">Odaqin</a> qlg.owwb.tanels.com.lto.yq http://slkjfdf.net/ Name: miyizofijumau E-mail: aqayigawe@elesa.sibicomail.com Sent: 04/17/2021 02:21:43 am http://slkjfdf.net/ - Apahaqow <a href="http://slkjfdf.net/">Olawuuwep</a> bai.hzku.tanels.com.bac.hj http://slkjfdf.net/ Name: ilojwetomijao E-mail: eyajomao@elesa.sibicomail.com Sent: 04/17/2021 02:12:19 am http://slkjfdf.net/ - Akifuz <a href="http://slkjfdf.net/">Inizej</a> tul.oeez.tanels.com.xpr.pq http://slkjfdf.net/ |