help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] IAJAAR.H_C-C++.dev.7z


From: Nigel Galloway
Subject: [Help-glpk] IAJAAR.H_C-C++.dev.7z
Date: Mon, 9 Aug 2010 13:30:50 +0100

I have added another fire to IAJAAR.H:

https://sourceforge.net/projects/iajaarh/files/IAJAAR.H_C-C%2B%2B.dev.20100806.7z/download

It expands the origional by including the library needed to compile the C++ 
example igst10yo.cpp. I also added sample.c to demonstrate using it with C and 
could not resist converting sample.c to sample.cpp tu use IAJAAR.H. Perhaps it 
will form the basis for a binary release of glpk using mingw.

C:\Users\Nigel\IAJAAR\IAJAAR.H_C-C++.dev>gcc sample.c -I. -L. -lglpk-4.44 -o C_S
ample.exe

C:\Users\Nigel\IAJAAR\IAJAAR.H_C-C++.dev>C_Sample
GLPK Simplex Optimizer, v4.44
3 rows, 3 columns, 9 non-zeros
*     0: obj =  0.000000000e+000  infeas = 0.000e+000 (0)
*     2: obj =  7.333333333e+002  infeas = 0.000e+000 (0)
OPTIMAL SOLUTION FOUND

z = 733.333; x1 = 33.3333; x2 = 66.6667; x3 = 0

C:\Users\Nigel\IAJAAR\IAJAAR.H_C-C++.dev>g++ sample.cpp -I. -L. -lglpk-4.44 -o 
C++C_Sample.exe

C:\Users\Nigel\IAJAAR\IAJAAR.H_C-C++.dev>C++C_Sample.exe
GLPK Simplex Optimizer, v4.44
3 rows, 3 columns, 9 non-zeros
*     0: obj =  0.000000000e+000  infeas = 0.000e+000 (0)
*     2: obj =  7.333333333e+002  infeas = 0.000e+000 (0)
OPTIMAL SOLUTION FOUND

z = 733.333; x1 = 33.3333; x2 = 66.6667; x3 = 0

C:\Users\Nigel\IAJAAR\IAJAAR.H_C-C++.dev>g++ igst10yo.cpp -I. -L. -lglpk-4.44 
-o igst10yo.exe

C:\Users\Nigel\IAJAAR\IAJAAR.H_C-C++.dev>igst10yo 22 7
GLPK Simplex Optimizer, v4.44
9 rows, 15 columns, 35 non-zeros
      0: obj =  0.000000000e+000  infeas = 2.200e+001 (9)
*     8: obj =  0.000000000e+000  infeas = 0.000e+000 (1)
OPTIMAL SOLUTION FOUND
The arithmetic mean of a sample of 7 numbers whose sum is 22 is 3.14286

-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]