/tmp/clpr yes | ?- [library('clpqr/examples/simplex')]. {consulting /freyung/christian/sicstus2.1.9.clp/library/clpqr/examples/simplex.pl...} {/freyung/christian/sicstus2.1.9.clp/library/clpqr/examples/simplex.pl consulted, 230 msec 15360 bytes} yes | ?- time(example(N,V,O)). %%% Timing 00:00:00.010 0.010 N = 1, O = 17200.0, V = [40.0,160.0] ? ; %%% Timing 00:00:00.020 0.020 N = 2, O = 7.0, V = [1.0,0.0,1.5] ? ; %%% Timing 00:00:00.020 0.020 N = 3, O = 18850.0, V = [38.0,170.0] ? ; %%% Timing 00:00:00.030 0.030 N = 4, O = 310.0, V = [7.0,2.0] ? ; %%% Timing 00:00:00.030 0.030 N = 5, O = 5.0, V = [0.0,0.0,2.5000000000000004] ? ; %%% Timing 00:00:00.020 0.020 N = 6, O = -7.0, V = [1.0,0.0,1.5] ? ; %%% Timing 00:00:00.070 0.070 N = 7, O = -70.0, V = [3.000000000000003,0.0,0.0,4.0,1.9999999999999998,0.0,5.0] ? ; %%% Timing 00:00:00.070 0.070 N = 8, O = -19.500000000000007, V = [0.0,3.4999999999999982,0.0,0.0,0.0,0.5000000000000009,0.0] ? ; %%% Timing 00:00:00.220 0.220 N = 9, O = 1167185.7255923203, V = [9.462945942265794,5.194418913398691,13.466605392156858,4.31985294117647,10.36764705882353,0.0,60.0,63.4629459422658,62.311070261437905,69.54656862745097,66.91176470588235,70.58823529411765,0.0,0.0,0.0,0.0,0.0,1411.7647058823532] ? ; %%% Timing 00:00:00.390 0.390 N = utility, O = 46554.76190476336, V = [0.0,161.90476190476357,28.571428571428214,142.8571428571422,666.6666666666667,0.0,0.0,0.0,999.9999999999999,0.0,1914.2857142857135,1928.5714285714234,0.0,1985.7142857142862,3999.9999999999973,397.6190476190506,2180.9523809523735,0.0,0.0,1000.0,500.00000000000006,2000.0000000000002,100.0,5000.000000000001,250.0000000000009,600.0,114.28571428571195,0.0] ? ; %%% Timing 00:00:00.220 0.220 N = electricity, O = 15628.571428582796, V = [0.0,428.5714285714289,28.57142857142867,_A,_B,0.0,0.0,0.0,_C,_D,_E,_F,_G,_H,1000.0,500.0,2000.0,100.0], {_A+0.6923076923076922*_G=<235.16483516483487}, {_G>=0.0}, {_A>=0.0}, {_D=185.71428571428618+1.5*_A+0.4999999999999999*_G}, {_F=1128.571428571429-_G}, {_H=1985.7142857142853+_G}, {_C=814.285714285714-1.5*_A-0.4999999999999999*_G}, {_E=1914.2857142857165-_G}, {_B=542.8571428571427-_A} ? ; %%% Timing 00:00:00.300 0.300 N = water, O = 23449.999999986194, V = [0.0,0.0,0.0,999.9999999944121,5.587935447700301e-09,0.0,49.999999999999545,_A,333.333333337678,_B,3999.999999999989,0.0,2483.333333332131,0.0,0.0,5000.0,250.0,600.0,_C,0.0], {_C=5.000000000000014*_A}, {_A>=6.08224581810644e-13}, {_B=616.666666662262-_A}, {_A=<22.222222222222626} ? ; %%% Timing 00:00:00.050 0.050 no | ?- ^D