Skip to content

Commit

Permalink
BugFix Issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
santinozaracho committed Jun 23, 2019
1 parent 3a9a092 commit 5ed463a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/elements/SimplexPresentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,16 @@ class SimplexPresentation extends React.Component{
//Creamos un nuevo item.
let item= {name:'',item:'',value:''};
//Verificamos si es Slack o Variable Real
if ( indCol < slacksEnCero ) {
if (variablesList[indexByCol[indCol+1]].isSlack){
item.name = 'Valor Marginal';
item.item = 'R'+indexByCol[indCol+1];
item.value = Math.abs(col);
}else {
}else{
item.name = 'Costo de Oportunidad';
item.item = 'X'+variablesList[indexByCol[indCol+1]].id;
item.value = Math.abs(col);
}

//Empujamos el item a la tabla de resultados
tableResult.push(item)})

Expand Down

0 comments on commit 5ed463a

Please sign in to comment.