The component can be used to solve several linear programming problems.
How to use TMtxLP component?
- Drop a TMtxLP component on the form.
- Set the Minimize property to minimize or maximize objective function f(x).
- By setting Algorithm select which algorithm will be used to solve LP problem.
- Define A, b, c and optionaly Relations , keeping in mind correct size of matrix, vectors and string.
- Call the Recalculate method to solve LP problem.
The results of solving LP are returned as:
- Final tableaux AFinal,
- Legitimate variables, stored in vector x,
- Indexes of legitimate variables, stored in vector Indexes IValues,
- Solution type, stored in SolutionType,
- Objective function z, evaluated at minimum or maximum.