all: fix many go vet errors

This commit is contained in:
kortschak
2017-06-17 20:50:09 +09:30
committed by Dan Kortschak
parent f990fc84b6
commit 7af70dd796
26 changed files with 47 additions and 51 deletions

View File

@@ -5,7 +5,6 @@
package lp
import (
"fmt"
"math/rand"
"testing"
@@ -241,8 +240,6 @@ func testSimplex(t *testing.T, initialBasic []int, c []float64, a mat.Matrix, b
// b^T *nu instead of maximizing -b^T*nu), so flip it back.
if errPrimal == nil {
if errDual != nil {
fmt.Println("errDual", errDual)
panic("here")
t.Errorf("Primal feasible but dual errored: %s", errDual)
}
dualOpt *= -1