://glpk.dyndns.org/viewvc/svn/glpk/glpk/branches/glpk-4.31-segmentation_fault/src/glpsql.c?view=diffr1=288r2=286diff_format=h
Best regards
Xypron
___
Bug-glpk mailing list
Bug-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-glpk
-segmentation_fault/src/glpsql.c?view=diffr1=290r2=289diff_format=h
http://glpk.dyndns.org/viewvc/svn/glpk/glpk/branches/glpk-4.31-segmentation_fault/src/glpsql.c?view=diffr1=290r2=289diff_format=h
(see appendix)
Best regards
Xypron
--- glpk/glpk/branches/glpk-4.31-segmentation_fault/src/glpsql.c 2008/09/28
=294diff_format=h
Best regards
Xypron
--- glpk/glpk/trunk/glpk-4.32/src/glpsql.c 2008/10/02 22:18:03 294
+++ glpk/glpk/trunk/glpk-4.32/src/glpsql.c 2008/10/25 13:20:52 297
@@ -830,10 +830,6 @@
{
xprintf(db_iodbc_write: Query\n\%s\\nfailed.\n, query);
extract_error
Andrew Makhorin wrote:
Please gzip the new version of glpsql.c and post it to me via e-mail.
Hello Andrew,
please, find appended the corrected file
md5sum: 49b5419e7cf7a4cf7b35667ae34bec2b glpsql.c.tar.gz
Best regards
Xypron
http://www.nabble.com/file/p20196786/glpsql.c.tar.gz
, the stack size is controlled
by environment variable, not the program itself.
So you cannot pass any flags to the
compilers, like gcc, to setup stack size. Under Windows platforms, the
stack size information is contained in the executable files.
Best regards
Xypron
. This would be in conformance with the usual use of
domain parameters.
I must admit that the following is an alternative notation but less elegant:
s.t. cost {i in N, j in N } :
t[i] - t[j] - ( if ((i,j) in E) then c[i,j] * x[i,j] else 0 ) = 0;
Best regards
Xypron
--
View this message in context
};
s.t. con2 {(i,j) in E} : w[i,j] - sum{(k,3) in E : k == i} 1 = 0;
solve;
display v,w;
Why shoudn't
s.t. con1 {(i,j) in E} : v[i,j] - sum{(2,3) in E} 1 = 0;
work?
Best regards
Xypron
--
View this message in context:
http://www.nabble.com/0-ary-slice-not-allowed-tp20707760p20710546.html
Sent
-in-usrlocallib
On my laptop I have a file
/etc/ld.so.conf.d/libc.conf
with the following content:
# libc default configuration
/usr/local/lib
Best regards
Xypron
--
View this message in context:
http://www.nabble.com/Glpk-make-install-error-tp20782650p20782882.html
Sent from the Gnu - GLPK
Hello Andrew,
when using GLPK with MySQL ODBC Connector 5.1 on 64bit Windows an error
occurs.
Please, apply the patch below to file src/glpsql.c
Best regards
Xypron
--- glpk/glpk/trunk/glpk-4.35/src/glpsql.c 2009/01/09 19:52:06 385
+++ glpk/glpk/trunk/glpk-4.35/src/glpsql.c
char *str, double *_val)
in glplib11.c not to be locale dependent.
The following code could do the trick:
#include locale.h
...
struct lconv * lc;
lc = localeconv();
setlocale ( LC_NUMERIC, 'C');
...
setlocale ( LC_NUMERIC, lc-decimal_point);
Best regards
Xypron
--
View this message in context
Hello Andrew,
as locales cannot be reset easily with standard C - functions
probably the best thing to do is to replace the decimal point
by lconv-decimal_point before calling str2num().
lcconv can be retrieved by calling localeconv().
Best regards
Xypron
xypron wrote:
I guess the GLPK
environment's locale is determined by the host operating system
and the user preferences established on that system.
Best regards
Xypron
___
Bug-glpk mailing list
Bug-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-glpk
--
View this message
Hello Andrew,
some typos exist in output strings. See patch below.
Best regards
Xypron
diff -ruN glpk-4.38-orig/src/glpapi20.c glpk-4.38/src/glpapi20.c
--- glpk-4.38-orig/src/glpapi20.c 2009-05-02 11:00:00.0 +0200
+++ glpk-4.38/src/glpapi20.c2009-06-27 23:03:43.0
infeas = 1.024e-014 (2)
| 19800: obj = 6.4e+001 infeas = 5.663e-014 (2)
Best regards
Xypron
# Knight's tour
#
# Determine the longest path a knight can
# cover on a chess field.
#
# glpsol -m test.mod --tmlim 100
# does not terminate for n=8
# size of field
param n;
# closed path
param
.
Could it be that it adds some cut that is not part of the original problem?
Best regards
Xypron
# make fixture list to minimise cases of pairs of teams in a tournament
having no opponents in common
# adjust teams and rounds below
set teams:= 1..16;
set rounds:= 1..4;
var roundGame {i in rounds, j
and to provide local optimality.
Best regards
Xypron
xypron wrote:
Hello Andrew,
I have solved the model below with
glpsol.exe --fpump -m test.mod --tmlim 30
(derived from
http://lists.gnu.org/archive/html/help-glpk/2009-09/msg00015.html
http://lists.gnu.org/archive/html/help-glpk/2009-09
Hello Andrew
Andrew Makhorin wrote:
Ios_feas_pump provides a complete mip solution.
The solution is feasible.
My expectation is that the feasibility pump should provide a result that is
LP optimal if I fix the
integer values provided by the feasibility pump.
Best regards
Xypron
--
View
.
f2 uses this values as fixed values.
Best regards
Xypron
--
View this message in context:
http://www.nabble.com/GLPSOL-outputs-MIP-solution-that-is-not-LP-optimal-for-fixed-integers-tp25337983p25430771.html
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com
columns, all of which are binary
Scaling...
The output was just the same if --presol is specified.
I would have expected no column to be removed with --nopresol.
Best regards
Xypron
--
View this message in context:
http://www.nabble.com/--nopresol-does-not-stop-presolver-tp25732404p25732404
, a
constraint is added to increment the objective by 10 %
which may be more than the gap to the LP solution.
Best regards
Xypron
http://www.nabble.com/file/p25872393/glpios10.tar.gz glpios10.tar.gz
--- glpk/glpk/trunk/glpk-4.39/src/glpios10.c2009/10/10 09:46:56 470
+++ glpk/glpk
Hello Andrew,
the modified patch works fine with my examples.
I guess the coding after
#if 0 /* modified by xypron xypron.g...@gmx.de */
up to
#else
should be removed from the coding as the coding is incorrect for dir ==
GLP_MAX.
Best regards
Xypron
Andrew Makhorin wrote:
Hi Xypron
: -0.00e+000
Best regards
Xypron
UdayV wrote:
Hello,
I am not sure if this is a bug or not, but I am not able to get
sensitivity bounds for the following simple example.
Uday Venkatadri
---
var x1, = 0;
var x2, = 0;
maximize
z: 3*x1+2*x2;
subject to
c1: 2
Hello Yang,
could you, please, provide an example file that provokes the described
behavior.
Please, be aware that GLPK is not threadsafe. Is you application using
multiple
threads to call GLPK?
Best regards
Xypron
Yang Ji-2 wrote:
Dear Glpk Developer,
I use Glpk for Windows
Hello Andrew,
please, find a patched glpsql.c appended.
The diff can be seen at
http://glpk.dyndns.org/viewvc/svn/glpk/branches/glpk-4.42-sql_null_data/src/glpsql.c?view=diffr1=85r2=83diff_format=h
Best regards
Xypron
Andrew Makhorin wrote:
Andrew, do you have any suggestion how to patch
Hello Andrew,
the issue is still open in GLPK 4.44.
Best regards
Xypron
xypron wrote:
Hello Andrew,
the following lines are superfluous in
examples/csv/transp_csv.mod
param f;
/* freight in dollars per case per thousand miles */
The value is read from a CSV file to param e{L
Xypron
Chelaru, Laura wrote:
Hi,
I am running glpsol from cmd line, calling a .mod and a .dat file.
Everything was working fine until I created a new .dat file (with
about twice as much data as the original) which, after being read in
and the model being successfully generated, causes
*/
if (q-lb != -DBL_MAX)
{ eps = (q-is_int ? 1e-5 : 1e-5 + 1e-8 * fabs(q-lb));
if (u q-lb - eps)
{ ret = 4; /* infeasible */
goto done;
}
/* if u'[q] is close to l[q], fix column at its lower bound */
if (u q-lb + 1e-3 * eps)
{ q-ub = q-lb;
ret = 3; /* fixed */
goto done;
}
}
Best regards
Xypron
Best regards
Xypron
param a ,integer;
param b ,integer;
param c ,integer;
var x integer;
var y integer;
st1: a*x + b*y = 21;
st1a: a*x + b*y = 33;
st2: x = 1;
st3: x = 1;
st4: y = -1;
st5: y = -1;
minimize m: a *x + b * y;
solve;
display x, y;
data;
param a := 51;
param b := 34;
end
Xypron
--
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:
http://www.gmx.net/de/go/multimessenger
___
Bug-glpk mailing list
Bug-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-glpk
the problem name but null in the call back function.
Why does glp_prob_name(tree) not return the same
pointer as the one passed to glp_int_opt?
Please, change the code to provide the problem name
in the call back function.
Best regards
Xypron
#include stdio.h
#include glpk.h
/**
* Call back function
] : 271
Best regards
Xypron
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
___
Bug-glpk mailing list
Bug-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-glpk
statement.
Analogously, if the item is a constraint or objective, its value
means elemental constraint or elemental objective, not a numeric
value.
Best regards
Xypron
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
will be aborted. Starting with
GLPK-Java 1.0.13 you can catch an error in the GLPK library as a
Java exception. In this case all objects created by GLPK will be
invalid.
Best regards
Xypron
--
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
Bis zu 150 EUR Startguthaben inklusive! http
you
experienced the error and provide an example table statement
that leads to the error.
This will allow the construction of a test case.
Best regards
Xypron
Original-Nachricht
Datum: Thu, 15 Jul 2010 00:16:58 +0200
Betreff: [Bug-glpk] bug in glpk 4.44 in glpsql.c
Hello
, please, update the documentation and possibly consider
the patch for inclusion into the next release.
Best regards
Xypron
--
GRATIS! Movie-FLAT mit über 300 Videos.
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome
___
Bug-glpk mailing list
Bug
problem formulation.
Best regards
Xypron
Forwarded Message
To: bug-glpk@gnu.org bug-glpk@gnu.org
Subject: preprocessing goes into infinite loop
Date: Fri, 13 Jan 2012 17:28:32 -0600
Hello!
I work with the Sage computer algebra system, which can use GLPK as a
backend
Best regards
Xypron
Original-Nachricht
Datum: Sat, 17 Mar 2012 15:05:30 +0300
Betreff: Re: [Bug-glpk] GLPK (4.47) fails to build with LTO (GCC 4.6.3,
\'-flto\')
Most likely the error is caused by autotools, so regenerating configure
and makefiles with a newer version
Hello Andrew,
so you do not want to support Linux because it is not 100% Posix? Neither all
those other Unix derivatives that will indicate an error in gettimeofday?
Best regards
Heinrich Schuchardt
http://www.xypron.de
Am 08.07.13 um 06:51 schrieb Andrew Makhorin
The POSIX standard says:
Hello Andrew,
I have file Q.csv:
C:\Temp>type Q
i,j,k,Q
1,1,1,""
1,1,2,1 3 4 5
1,1,3,1 5
1,1,4,1 3 5
and model test.mod
set I, dimen 3;
set J;
param Q{I}, symbolic;
table data IN "CSV" "Q.csv" :
I <- [i, j, k], Q;
solve;
display Q;
end;
I get unexpected error:
Q.csv:2: empty field not
Hello Andrew,
the dll name glpk_4_59.1.dll leads to an error when running glpsol
"The program can't start because glpk_4.59.1 is missing from your computer."
Do not use periods in dll names.
Best regards
Heinrich Schuchardt
___
Bug-glpk mailing list
40 matches
Mail list logo