PHP Classes

PHP Simplex Solver: Solve equations in linear programming with Simplex

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 326 This week: 1All time: 7,181 This week: 560Up
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: 45
All time rank: 375762 in Indonesia Indonesia
Week rank: 411 Up7 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  
  • screenshot
  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:326
This week:1
All time:7,181
This week:560Up
 User Ratings  
 
 All time
Utility:87%StarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:-
Examples:93%StarStarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:916