[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] [Fwd: Suppressing output]
From: |
glpk xypron |
Subject: |
Re: [Help-glpk] [Fwd: Suppressing output] |
Date: |
Thu, 12 May 2011 15:24:56 +0200 |
Hello Páidí,
in glpk-4.43/doc/glpk.pdf of the GLPK source you can find the
documentation.
The source of GLPK can be downloaded from
ftp://ftp.gnu.org/gnu/glpk/glpk-4.43.tar.gz
You can switch off output completely with:
glp_term_out(int flag) |enable/disable terminal output
GLP_ON | enable terminal output;
GLP_OFF | disable terminal output.
Unfortunately glp_term_hook is not usable with Python-GLPK.
http://www.dcc.fc.up.pt/~jpp/code/python-glpk/
Best regards
Xypron
-------- Original-Nachricht --------
> Datum: Thu, 12 May 2011 17:04:14 +0400
> Von: Andrew Makhorin <address@hidden>
> An: address@hidden
> Betreff: [Help-glpk] [Fwd: Suppressing output]
> -------- Forwarded Message --------
> From: Páidí Creed <address@hidden>
> To: address@hidden
> Subject: Suppressing output
> Date: Thu, 12 May 2011 13:44:38 +0100
>
> Hi,
>
>
> Is there any option to suppress output when using GLPK? I have a python
> program that is using GLPK to solve a sequence of LPs, which causes
> something like the following to be printed to my output.
>
>
> GLPSOL: GLPK LP/MIP Solver, v4.43
> Parameter(s) specified in the command line:
> --cpxlp /tmp/3702-pulp.lp -o /tmp/3702-pulp.sol
> Reading problem data from `/tmp/3702-pulp.lp'...
> 54 rows, 19 columns, 274 non-zeros
> 87 lines were read
> GLPK Simplex Optimizer, v4.43
> 54 rows, 19 columns, 274 non-zeros
> Preprocessing...
> PROBLEM HAS NO PRIMAL FEASIBLE SOLUTION
> If you need actual output for non-optimal solution, use --nopresol
> Time used: 0.0 secs
> Memory used: 0.1 Mb (68980 bytes)
> Writing basic solution to `/tmp/3702-pulp.sol'...
> GLPSOL: GLPK LP/MIP Solver, v4.43
> Parameter(s) specified in the command line:
> --cpxlp /tmp/3702-pulp.lp -o /tmp/3702-pulp.sol
> Reading problem data from `/tmp/3702-pulp.lp'...
> 54 rows, 19 columns, 274 non-zeros
> 87 lines were read
> GLPK Simplex Optimizer, v4.43
> 54 rows, 19 columns, 274 non-zeros
> Preprocessing...
> PROBLEM HAS NO PRIMAL FEASIBLE SOLUTION
> If you need actual output for non-optimal solution, use --nopresol
> Time used: 0.0 secs
> Memory used: 0.1 Mb (68980 bytes)
> Writing basic solution to `/tmp/3702-pulp.sol'...
> GLPSOL: GLPK LP/MIP Solver, v4.43
> Parameter(s) specified in the command line:
> --cpxlp /tmp/3702-pulp.lp -o /tmp/3702-pulp.sol
> Reading problem data from `/tmp/3702-pulp.lp'...
> 54 rows, 19 columns, 291 non-zeros
> 88 lines were read
> GLPK Simplex Optimizer, v4.43
> 54 rows, 19 columns, 291 non-zeros
> Preprocessing...
> 36 rows, 18 columns, 273 non-zeros
> Scaling...
> A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00
> Problem data seem to be well scaled
> Constructing initial basis...
> Size of triangular part = 36
> 0: obj = 0.000000000e+00 infeas = 1.000e+00 (0)
> 12: obj = 0.000000000e+00 infeas = 1.000e+00 (0)
> PROBLEM HAS NO FEASIBLE SOLUTION
> glp_simplex: unable to recover undefined or non-optimal solution
> If you need actual output for non-optimal solution, use --nopresol
> Time used: 0.0 secs
> Memory used: 0.1 Mb (122109 bytes)
> Writing basic solution to `/tmp/3702-pulp.sol'...
> GLPSOL: GLPK LP/MIP Solver, v4.43
> Parameter(s) specified in the command line:
> --cpxlp /tmp/3702-pulp.lp -o /tmp/3702-pulp.sol
> Reading problem data from `/tmp/3702-pulp.lp'...
> 54 rows, 19 columns, 291 non-zeros
> 88 lines were read
> GLPK Simplex Optimizer, v4.43
> 54 rows, 19 columns, 291 non-zeros
> Preprocessing...
> 36 rows, 18 columns, 273 non-zeros
> Scaling...
> A: min|aij| = 1.000e+00 max|aij| = 1.000e+00 ratio = 1.000e+00
> Problem data seem to be well scaled
> Constructing initial basis...
> Size of triangular part = 36
> 0: obj = 0.000000000e+00 infeas = 1.000e+00 (0)
> 1: obj = 0.000000000e+00 infeas = 1.000e+00 (0)
> PROBLEM HAS NO FEASIBLE SOLUTION
> glp_simplex: unable to recover undefined or non-optimal solution
> If you need actual output for non-optimal solution, use --nopresol
> Time used: 0.0 secs
> Memory used: 0.1 Mb (119349 bytes)
> Writing basic solution to `/tmp/3702-pulp.sol'...
> No separator of arity 3
>
>
> However, I would rather only see the final line of output (which does
> not come from GLPK):
>
>
> No separator of arity 3
>
>
> Any help appreciated.
>
>
> Regards,
> Páidí
>
>
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-glpk
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de