[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-glpk] no range check when converting large timelimit to integer
From: |
Andrew Makhorin |
Subject: |
Re: [Bug-glpk] no range check when converting large timelimit to integer |
Date: |
Sat, 15 Sep 2007 14:31:26 +0400 |
> when I do
> lpx_set_real_parm(model, LPX_K_TMLIM, 1e+9);
> and call some solve routine, then it ends with:
> glp_simplex: tm_lim = -2147483648; invalid parameter
> So probably the timelimit is somewhere inside GLPK converted to an
> integer without checking whether this is possible.
> Maybe GLPK could just set the timelimit to -1 if the double number is
> too big to be converted to an integer.
Thank you for the bug report.
In fact, glp_simplex (which replaces lpx_simplex) has a local set
of control parameters, where the time limit is measured in milliseconds
and has the type int. The parameter LPX_K_TMLIM is kept for backward
compatibility.