Re: [Help-glpk] use GLPK to solve LP without printing anything on terminal

2015-04-13 Thread Nigel Galloway
Have you considered looking at t1.cs from glpk's example directory and glpk's API documentation? Let us look now at t1.cs. First the example was written for Linux so we change the line const string glpkLibrary = libglpk.so; to const string glpkLibrary = glpk.dll; //*** and run it as is t1.exe

Re: [Help-glpk] use GLPK to solve LP without printing anything on terminal

2015-04-11 Thread usa usa
please refer to my answsers below. I called GLPK from C# in VS 2013 on win7. On Sat, Apr 11, 2015 at 12:13 AM, Reginald Beardsley pulask...@yahoo.com wrote: The answers to your questions depend almost entirely upon the computer you're using. What processor? Xeon What clock rate?

Re: [Help-glpk] use GLPK to solve LP without printing anything on terminal

2015-04-11 Thread usa usa
Also, How to indicate algorithms in GLPK to solve LP or IP from API ? GLPK has simplex, primal-dual and branch-bound algorithms, are there others? thanks On Sat, Apr 11, 2015 at 8:39 AM, Nigel Galloway nigel_gallo...@operamail.com wrote: If you are using the API then the output is

Re: [Help-glpk] use GLPK to solve LP without printing anything on terminal

2015-04-11 Thread usa usa
Hi, I called GLPK from C# in VS 2013 on win7. The API that I called is: Solution mySolution = solver.Solve(myMathLPModel); How to use GLP_OFF to close the output on terminal ? Any help would be appreciated. Thanks On Sat, Apr 11, 2015 at 8:39 AM, Nigel Galloway

Re: [Help-glpk] use GLPK to solve LP without printing anything on terminal

2015-04-11 Thread Nigel Galloway
If you are using the API then the output is controlled with GLP_ON and GLP_OFF. If you are using mathprog glpsol then -y filename will send the output to a file rather than your terminal. If using Linux and you absolutely don't want the output then -y /dev/nul should do you. -- Nigel Galloway

Re: [Help-glpk] use GLPK to solve LP without printing anything on terminal

2015-04-10 Thread Reginald Beardsley
The answers to your questions depend almost entirely upon the computer you're using. What processor? What clock rate? How much memory? What else is running? What operating system? You'll need to answer those questions to get a proper answer. Without all of that information any answer is