[Top][All Lists]

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

Re: [Bug-glpk] 0-ary slice not allowed

From: xypron
Subject: Re: [Bug-glpk] 0-ary slice not allowed
Date: Wed, 26 Nov 2008 14:49:35 -0800 (PST)

Hello Andrew,

>> Just for clarity.
>> Do you agree that the following notation is meaningless?
>> sum{(2,3) in E} c[i,j] * x[i,j] 

The following model is correctly solved by GLPK:

set E := {(2,3)};
var v{(i,j) in E};
s.t. con1 {(i,j) in E} : v[i,j] - sum{(2,k) in E : k == j} 1 = 0;
var w{(i,j) in E};
s.t. con2 {(i,j) in E} : w[i,j] - sum{(k,3) in E : k == i} 1 = 0;
display v,w;

Why shoudn't
s.t. con1 {(i,j) in E} : v[i,j] - sum{(2,3) in E} 1 = 0;

Best regards


View this message in context: 
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com.

reply via email to

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