PHP Classes

PHP Simplex Solver: Solve equations in linear programming with Simplex

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 329 This week: 1All time: 7,155 This week: 41Up
Version License PHP version Categories
simplex-solver 1.0.0Freely Distributable5HTML, Algorithms, PHP 5
Description 

Author

This class can solve equations in linear programming with Simplex algorithm.

It takes as parameters arrays of left data, right data and z data, as well the number of iterations.

The class can solve the equation and even display the results in a HTML table.

Innovation Award
PHP Programming Innovation award nominee
November 2016
Number 14
Simplex is an algorithm to solve linear programming problems.

This package provides an implementation of simples algorithms to solve problems from arrays of data. It can show the results in Web pages using HTML tables.

Manuel Lemos
Picture of donni ansyari
  Performance   Level  
Name: donni ansyari <contact>
Classes: 1 package by
Country: Indonesia Indonesia
Age: 46
All time rank: 375063 in Indonesia Indonesia
Week rank: 48 Up2 in Indonesia Indonesia Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php
include "setting.php";
include
"data.php";
include
"TSimplex.class.php";

$r = new TSimplex($leftdata,$rightdata,$zdata,$maxiterasi,$iscetak);

// IF $iscetak= false, initial in setting.php
$jlhvariabel=$r->jumlahstatement();
$varcelltarget=$r->varvalue();
$result=$r->result();

echo
"Z=".$result."<br>";
for (
$i = 0; $i<=($jlhvariabel-1); $i++) {
    echo
$varcelltarget[$i][0]."=".$varcelltarget[$i][1]; echo "<br>";
}


?>


Screenshots (1)  
  • screenshot
  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file data.php Aux. data
Accessible without login Plain text file setting.php Conf. setting
Accessible without login Plain text file test.php Example test
Plain text file TSimplex.class.php Class TSimplex.class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:329
This week:1
All time:7,155
This week:41Up
 User Ratings  
 
 All time
Utility:87%StarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:-
Examples:93%StarStarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:918