diff --git a/Web/PartB_Random.php b/Web/PartB_Random.php
new file mode 100644
index 0000000..7add841
--- /dev/null
+++ b/Web/PartB_Random.php
@@ -0,0 +1,224 @@
+$d){
+ $profit[$key]=rand(10,50);
+}
+
+//print_r($profit);
+
+//create cost based off dVariable
+$cost=array();
+foreach($dvariable as $key=>$dv){
+ $cost[$dv]=rand(2,8);
+}
+//print_r($cost);
+
+//Create Actual Profit Array
+
+$actualProfit1=array();
+foreach($departments as $d){
+ $v=$profit[$d];
+ foreach($suppliers as $s){
+ $actualProfit1["{$s}_{$d}"]=$v-$cost["{$s}_{$d}"];
+ }
+}
+//print_r($actualProfit1);
+
+
+
+
+//print_r($dvariable);
+
+//--------------------------------------------------------------------------
+//Create OSIL file
+
+$os=new WEBIS\OS;
+
+foreach($dvariable as $dv){
+ $v=$os->addVariable("$dv");
+ $os->addObjCoef("$dv", $actualProfit1[$dv]);
+}
+
+//Create Demand Constraints
+foreach($departments as $d){
+ $os->addConstraint(NULL,$demand[$d]);
+ foreach($suppliers as $s){
+ $os->addConstraintCoef("{$s}_{$d}",1);
+ }
+}
+
+//Create Supply Constraints
+
+foreach($suppliers as $s){
+ $os->addConstraint($supply[$s],NULL);
+ foreach($departments as $d){
+ $os->addConstraintCoef("{$s}_{$d}",1);
+ }
+ }
+ //print_r($os);
+
+?>
+
+
+
+
+
+
Decision Support Systems IMSE 7420 Final
+
+
+ J.D.Stumpf-------Jdspn6
+Decision Support Systems IMSE 7420 Final (E1)
+ Supply Data
+
+Supplier |
+$s";
+ }
+echo"
Supply | ";
+foreach($supply as $s){
+ echo"$s | ";
+ }
+echo"
";
+?>
+
+
+ Demand Data
+
+Department |
+$d";
+ }
+echo"
Demand | ";
+foreach($demand as $d){
+ echo"$d | ";
+ }
+echo"
";
+?>
+
+
+ Profit Data
+
+Department |
+$d";
+ }
+echo"
Profit | ";
+foreach($profit as $p){
+ echo"$p | ";
+ }
+echo"
";
+?>
+
+
+
+ Profit-Shipping Data
+
+Supplier to Department |
+$d";
+ }
+echo"
Actual Profit | ";
+foreach($actualProfit1 as $p){
+ echo"$p | ";
+ }
+echo"
";
+?>
+
+
+
+
+ OSIL OSRL Optimization Solution
+
+
+Objective Value |
+solve();
+echo "$objvalue | "
+?>
+ |
+
+ Shipment Values
+
+
+ |
+$s\n";
+}
+?>
+
+$d | ";
+ foreach($suppliers as $s){
+ echo "".$os->getVariable("{$s}_{$d}")." | ";
+ }
+ }
+?>
+
+
+Back to Index Page
+
+