bug-glpk
[Top][All Lists]
Advanced

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

[Bug-glpk] Segmentation fault (core dumped) in table statement


From: Xypron
Subject: [Bug-glpk] Segmentation fault (core dumped) in table statement
Date: Sun, 28 Sep 2008 17:30:57 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080702 SeaMonkey/1.1.11

Hello Andrew,

the following code leads to a segmentation error in glpk-4.31:

    set S;
    param p {s in S} symbolic;
    set P;
    table plants IN 'iODBC' 'DSN=glpk;UID=glpk;PWD=gnu'
      p['PLANTS'] :
      S <- [LOC1];
    solve;
    data;
    param p :=
      [PLANTS] 'SELECT PLANT, CAPA AS CAPACITY FROM transp_capa';
    end;


11 lines were read
Reading plants...
error.mod:5: no value for S
Model processing error
Segmentation fault (core dumped)

    set S;
    param p {s in S} symbolic;
    set P;
    display p['PLANTS'];
    solve;
    data;
    param p :=
      [PLANTS] 'SELECT PLANT, CAPA AS CAPACITY FROM transp_capa';
    end;

gives

10 lines were read
Display statement at line 4
error.mod:4: no value for S
Model processing error

I would have expected successful error treatment for the table statement, too.

Best regards

Xypron

 

reply via email to

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