'
}
}
]
});
pp.show();
}
function createAboutWindow()
{
var pp = Ext.create('Ext.Window',
{
layout : 'absolute',
width : 505,
height : 300,
title: 'Mathstools',
id: 'panelHelp',
animCollapse : true,
collapsible : true,
closable : true,
hidden: false,
renderTo: Ext.getBody(),
bodyStyle: 'padding: 8px; overflow: auto; width: 480px; ',
items: [
{
xtype: 'box',
id: 'helpContainer',
autoEl: {
tag: 'div',
style: 'text-align: center; color: darkRed; font-weight: bold;',
html: 'Mathstools About us'
}
}
]
, listeners: {
'render': function(panel) {
var url = '/index.php/section/crud?crudid=67';
$('#helpContainer').load(url, null ,
function (responseText, textStatus, XMLHttpRequest)
{
});
}
}
});
pp.show();
}
function createHelpWindow(idParent, ttt, uuu, isHelp)
{
var pp = Ext.create('Ext.Window',
{
layout : 'absolute',
width : 890,
height : 550,
title: ttt,
id: 'panelHelp',
animCollapse : true,
collapsible : true,
closable : true,
hidden: false,
renderTo: Ext.getBody(),
bodyStyle: 'padding: 8px; overflow: auto;',
items: [
{
xtype: 'box',
id: 'helpContainer1',
autoEl: {
tag: 'div',
style: 'text-align: center; color: darkRed; font-weight: bold;',
html: '
'
}
},
{
xtype: 'box',
id: 'helpContainer',
autoEl: {
tag: 'div',
style: 'top: 100px; border: 2px solid #000000; border-radius: 15px 15px 15px 15px; position: relative !important; text-align: left; font-weight: bold; padding-right: 10px;',
styleCls: 'definitionDiv',
styleClass: 'definitionDiv',
html: ttt
}
}
]
, listeners: {
'render': function(panel) {
var url =uuu;
$('#helpContainer').load(url, null ,
function (responseText, textStatus, XMLHttpRequest)
{
/*alert('statuys' + textStatus);*/
});
}
}
});
pp.show();
}
function addFeedbackPanel(panel, app)
{
var pp = Ext.create('Ext.panel.Panel',
{
width: 485,
title: 'Send us your Feedback',
id: 'panelFeedback',
bodyStyle: 'padding: 8px;',
x: 200,
y: 0,
items: [
{
xtype: 'box',
autoEl: {
tag: 'div',
style: 'text-align: center; color: darkRed; font-weight: bold;',
html: 'Yours feedbacks are wellcome'
}
},
{
xtype: 'box',
autoEl: {
tag: 'div',
style: 'text-align: left; padding: 5px; padding-top: 10px; padding-bottom: 10px; line-height: 17px',
html: "Did you like our applications?Have any suggestions?Got some text that you would like post it on www.mathstools.com? "
}
},
{
xtype: 'box',
autoEl: {
tag: 'div',
style: 'text-align: left; padding: 5px; padding-top: 10px; padding-bottom: 10px; line-height: 17px',
//html: 'Still not registered?
Register here'
html: 'Hate messages or messages that do not contribute anything will not be published and nor answered. Check our
Policy here'
}
},
{
xtype: 'textfield',
width: 570,
heigth: 190,
fieldLabel: 'Name',
labelWidth: 100,
value: '',
x: 5,
y: 10,
inputId: 'name'
},
{
xtype: 'splitter' // A splitter between the two child items
},
{
xtype: 'textfield',
width: 570,
heigth: 190,
fieldLabel: 'Email',
labelWidth: 100,
value: '',
x: 5,
y: -2,
inputId: 'email'
},
{
xtype: 'splitter' // A splitter between the two child items
},
{
xtype: 'textarea',
heigth: 150,
fieldLabel: 'Your Text here',
labelWidth: 100,
width: 570,
rows: 7,
value: '',
x: 5,
y: -2,
inputId: 'text'
},
{
xtype: 'button',
text: 'Clear Form',
style: {'float': 'left', 'margin-left': '20px;'},
handler: function(){
cleanForm();
}
},
{
xtype: 'button',
styleHtmlCls: 'button',
text: 'Send',
style: {'float': 'right', 'margin-right': '20px;'},
handler: function(){
sendFeedBack(app);
}
}
/*
,
{
xtype: 'button',
styleHtmlCls: 'button',
text: 'Register here',
style: {'float': 'right', 'margin-right': '20px;'},
handler: function(){
goTo('/section/forum/L2ZvcnVtL3VjcC5waHAXXXbW9kZT1yZWdpc3Rlcg%3D%3D');
}
}
*/
]
});
panel.add(pp);
}
function generateSolutionImg(result, title)
{
$('#panelWidget').remove();
var pp = Ext.create('Ext.Window',
{
layout : 'absolute',
width : 505,
height : 300,
title: title,
id: 'panelWidget',
animCollapse : true,
collapsible : true,
closable : true,
hidden: false,
renderTo: Ext.getBody(),
bodyStyle: 'padding: 8px; overflow: auto;',
items: [
{
xtype: 'box',
style: 'text-align: center;',
autoEl: {
tag: 'div',
style: 'display: block; float: none; text-align: center ! important; width: 100%; clear: both;',
html: '
'
}
},
{
xtype: 'box',
id: 'widgetHelpContainer',
autoEl: {
tag: 'div',
style: 'text-align: left; width: 100%; float: none; clear: both; margin-top: 30px;',
html: result
}
}
]
});
pp.show();
}
//-->
Simplex Algorithm Calculator
Simplex Algorithm Calculator is an online application on the simplex algorithm and two phase method.
Inputs
Simply enter your linear programming problem as follows
1) Select if the problem is maximization or minimization
2) Enter the cost vector in the space provided, ie in boxes labeled with the Ci. Note that you can add dimensions to this vector with the menu "Add Column" or delete the "Delete Column"
3) Enter the matrix of constraints in the columns denoted by Ai. Note that you can resize the problem using the menu "Add Row", "Add Column", "Delete Row" and "Delete Column"
4) Click the sign foreach constraint of the problem,
5) Enter the constraints vector in the column denoted by B. Note that you can resize the problem using the menu "Add Row" and "Delete Row"
Run and Outputs
To begin the calculations click on one of these two actions:
1) Step by Step Execution: This option will run the Simplex algorithm showing each iteration: A window opens showing how the algorithm pivoting matrix at each step, the solutions and some statistics, such as phase, number of steps of the simplex, the indexes on the base ... Within this option, select
1a) for the calculation mode "Fraction Mode" or "numeric mode"
1b) Next step: This option will Avanze a new step in the simplex algorithm
1c) Back to Menu: Closes the current window and returns to the original with the simplex algorithm.
2) Execute Simplex: This option will run the Simplex algorithm on the problem introduced in the previous steps:a window will be opened in seconds after this click with the final solution found and execution statistics.
Final comments
Simplex Algorithm Calculator comment that is not restricted from us about the extent of the problem and that the precise tolerance in the calculations is 16 decimal digits.
At the same time the maximum processing time for a linear programming problem is 20 second, after that time any execution on the simplex algorithm will stop if no solution is found.
if (!function_exists("utf8_encode")){
function utf8_encode($var){
return is_null($var) ? false : $var;
}
}
?>