From fa9e88caeff19ef03184d697c3da4b18f23879bf Mon Sep 17 00:00:00 2001 From: Alec Jacobson Date: Wed, 30 Dec 2020 21:13:43 -0500 Subject: [PATCH] example CI,ci0 no longer Row/Col Major degenerate --- src/main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cc b/src/main.cc index 3f0124e..aa9be8a 100755 --- a/src/main.cc +++ b/src/main.cc @@ -15,8 +15,8 @@ s.t. x_1 + x_2 = 3 x_1 >= 0 - x_2 >= 0 x_1 + x_2 >= 2 + x_2 >= 0 The solution is x^T = [1 2] and f(x) = 12 @@ -84,7 +84,7 @@ int main (int argc, char *const argv[]) { p = 3; CI.resize(n, p); { - std::istringstream is("1.0, 0.0, 1.0, " + std::istringstream is("1.0, 1.0, 0.0, " "0.0, 1.0, 1.0 "); for (int i = 0; i < n; i++) @@ -94,7 +94,7 @@ int main (int argc, char *const argv[]) { ci0.resize(p); { - std::istringstream is("0.0, 0.0, -2.0 "); + std::istringstream is("0.0,-2.0, 0.0 "); for (int j = 0; j < p; j++) is >> ci0[j] >> ch;