public static void main(String[] args) {

		try {
			test1();
		} catch (ArithmeticException e) {
			e.printStackTrace();
		}
		StdOut.println("--------------------------------");

		try {
			test2();
		} catch (ArithmeticException e) {
			e.printStackTrace();
		}
		StdOut.println("--------------------------------");

		try {
			test3();
		} catch (ArithmeticException e) {
			e.printStackTrace();
		}
		StdOut.println("--------------------------------");

		try {
			test4();
		} catch (ArithmeticException e) {
			e.printStackTrace();
		}
		StdOut.println("--------------------------------");

		int M = Integer.parseInt(args[0]);
		int N = Integer.parseInt(args[1]);
		double[] c = new double[N];
		double[] b = new double[M];
		double[][] A = new double[M][N];
		for (int j = 0; j < N; j++)
			c[j] = StdRandom.uniform(1000);
		for (int i = 0; i < M; i++)
			b[i] = StdRandom.uniform(1000);
		for (int i = 0; i < M; i++)
			for (int j = 0; j < N; j++)
				A[i][j] = StdRandom.uniform(100);
		Simplex lp = new Simplex(A, b, c);
		StdOut.println(lp.value());
	}