rem "How many parameters do you want to pass to ipsolve (2-7)? ");
rem "How many variables are in the system of equations (2-4)? ");
rem If only two cols, know only two equations.
rem matrix elements
rem B
rem F
rem IntList
rem HiBound - -1 -> infinity
rem LoBound
rem CType

echo Problem 1.
echo Uses equality constraints.
L 2 2
1 1
1 -1

B 2
4 2

F 2
1 1

IntList 2
1 1

HiBound 2
1e30 1e30

LoBound 2
0 0

CType 2
0 0

done

echo Problem 2.
L 2 2
1 1
1 -1

B 2
6 2

F 2
0 -1

CType 2
0 0
done

echo Problem 3.
echo One of the variables has zero cost.
echo Equality constraints.
L 2 2
1 1
1 -1

B 2
2 100

F 2
0 -1

CType 2
0 0
done

echo Problem 4.
L 2 2
1 1
5 1

B 2
2 2

F 2
-100 100

CType 2
1 1

done

echo Problem 5.
echo Has one negative and one positive cost vector.
echo Has lower boundaries at minus infinity.

L 2 2
1 1
1 -1

B 2
-2 0

F 2
-100 100

LoBound 2
-1e30 -1e30
done

echo Problem 6.
echo Has an upper bound below a lower bound.
echo Should be infeasible.

L 2 2
1 1
1 -1

B 2
-2 0

F 2
-100 100

HiBound 2
10 10

LoBound 2
20
-1e30

done

echo Problem 7.
echo Relies on default values of IntList.
echo Has lowish upper bounds.
L 2 2
1 1 
1 -1

B 2
4 2

F 2
-1 -1

HiBound 2
10 10

done

echo Problem 8.
echo Negative cost vector, all variables integral.
L 2 2
1 1
1 -1

B 2
4 2

F 2
-1 -1

IntList 2
1 1

done

echo Problem 9.
echo Does not require the results to be integral.
echo Negative cost vector.

L 2 2
1 1
1 -1

B 2
4.5 2.5

F 2
-1 -1

IntList 2
0 0

done

echo Problem 10.
echo Negative cost vector.
L 2 2
1 1
1 -1

B 2
4.5 2.5

F 2
-1 -1

done

echo Problem 11.
echo Uses negative cost vector - maximization problem.
echo Has a null constraint column.
L 2 2
1 0
1 0

B 2
4.5 2.5

F 2
-1 -1

done

echo Problem 12.
echo Uses a cost vector with one negative and one positive
echo element.
echo Has a null constraint column.
L 2 2
1 0
1 0

B 2
4.5 2.5

F 2
-1 1

IntList 2
1 1
done

echo Problem 13.
echo Uses a null constraint row.
L 2 2
1 1
0 0

B 2
4.5 2.5

F 2
-1 1

done

echo Problem 14.
echo Uses nonintegral constraints.
L 2 2
1 1
1 -1

B 2
4.5 2.5

done

echo Problem 15.
echo Uses a negative constraint vector value.
L 2 2
1 1
1 -1

B 2
4.5 -1

done

echo Problem 16.
echo Uses more constraints than variables.
L 3 2
1 0
0 1
-1 -1

B 3
2
2
-2

F 2
1 1

CType 3
1 1 -1

done

echo Problem 17.
echo Uses more variables than constraints.
L 2 3
1 0 0
1 1 -1

B 2
2 3

F 2
1 1

done

quit


