Spaces:
Sleeping

douglasribeiro commited on
Commit
3798531
·
verified ·
1 Parent(s): 32e7a52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -121,8 +121,8 @@ def extrair_solucao(tabela, n_var, n_rest, tipo):
121
  i1 = col_round.index(1.0)
122
  resultado[j] = tabela[i1][-1]
123
 
124
- valor_bruto = tabela[-1][-1]
125
- valor_otimo = (-valor_bruto) if tipo == "max" else (valor_bruto)
126
  return resultado[:n_var], valor_otimo
127
 
128
 
 
121
  i1 = col_round.index(1.0)
122
  resultado[j] = tabela[i1][-1]
123
 
124
+ valor_bruto = float(tabela[-1][-1])
125
+ valor_otimo = -valor_bruto if tipo == "max" else valor_bruto
126
  return resultado[:n_var], valor_otimo
127
 
128