1 /*****************************************************************************
3 * ************************************************************************* *
5 * *** ~*~ SIMPLEX ~*~ *** *
7 * *** A simple implementation of the simplex *** *
8 * *** algorithm for Linear Programming for Maxima. *** *
10 * *** This file provides function klee_minty, which produces a linear *** *
11 * *** program, which requires exponential time to solve using the *** *
12 * *** standard simplex method with no scaling. This file is part of *** *
13 * *** the simplex package for Maxima. *** *
16 * *** Version: 1.0 (September 2004) *** *
17 * *** Author: Andrej Vodopivec <andrej.vodopivec@fmf.uni-lj.si> *** *
19 * ************************************************************************* *
21 *****************************************************************************/
23 klee_minty(n) := block(
25 A : zeromatrix(n,2*n),
32 b : makelist(100^i, i, 0, n-1),
33 c : -makelist(10^(n-i), i, 1, n),
34 for i:1 thru n do c : append(c, [0]),