help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] help


From: Cihan .
Subject: [Help-glpk] help
Date: Sun, 24 Aug 2008 18:04:20 +0400

Hi;

 

I want to solve a proplem with glpk but i take an error. i give the model and 
the error below. 

 

my model is:

 

set gecis{k in 1..9,i in 1..54,j in 1..54};

var x{1..54,1..54}, integer, <= 6,>= 0;

var y{1..18,1..54}, integer, <= 1,>= 0;

minimize hareket: sum{i in 1..18, t in 1..54} t * y[i,t];

s.t. kisitbir{t in 1..53,(k,i,j) in gecis}: x[i,t]-6*(1-y[k,t]) <= x[j,t+1];
s.t. kisitiki{t in 1..53,(k,i,j) in gecis}: x[j,t]-6*(1-y[k+1,t]) <= x[i,t+1];

data;

set gecis := (1,1,18) (1,2,30) (1,3,42) (1,10,3) (1,22,2) (1,34,1) (1,18,54) 
(1,30,53) (1,42,52) (1,52,10) (1,53,22) 

(1,54,34) (1,19,43) (1,20,31) (1,21,19) (1,31,44) (1,33,20) (1,43,45) (1,44,33) 
(1,45,21) (3,4,17) (3,5,29) (3,6,41) (3,11,6) 

(3,23,5) (3,35,4) (3,17,51) (3,29,50) (3,41,49) (3,49,11) (3,50,23) (3,51,35) 
(5,7,16) (5,8,28) (5,9,40) (5,12,9) (5,24,8) 

(5,36,7) (5,16,48) (5,28,47) (5,40,46) (5,46,12) (5,47,24) (5,48,36) (5,13,15) 
(5,14,27) (5,15,39) (5,25,14) (5,27,38) 

(5,37,13) (5,38,25) (5,39,37) (7,10,13) (7,11,14) (7,12,15) (7,13,16) (7,14,17) 
(7,15,18) (7,16,19) (7,17,20) (7,18,21) 

(7,19,10) (7,20,11) (7,21,12) (7,1,3) (7,2,6) (7,3,9) (7,4,2) (7,6,8) (7,7,1) 
(7,8,4) (7,9,7) (9,22,25) (9,23,26) (9,24,27) 

(9,25,28) (9,26,29) (9,27,30) (9,28,31) (9,29,32) (9,30,33) (9,31,22) (9,32,23) 
(9,33,24) (11,34,37) (11,35,38) (11,36,39) 

(11,37,40) (11,38,41) (11,39,42) (11,40,43) (11,41,44) (11,42,45) (11,43,34) 
(11,44,35) (11,45,36) (11,36,39) (11,46,48) 

(11,47,51) (11,48,54) (11,49,47) (11,51,53) (11,52,46) (11,53,49) (11,54,52) 
(13,1,45) (13,4,33) (13,7,21) (13,13,1) 

(13,25,4) (13,37,7) (13,21,52) (13,33,49) (13,45,46) (13,46,13) (13,49,25) 
(13,52,37) (13,10,34) (13,11,22) (13,12,10) 

(13,22,35) (13,24,11) (13,34,36) (13,35,24) (13,36,12) (15,2,44) (15,5,32) 
(15,8,20) (15,14,2) (15,26,5) (15,38,8) (15,20,53) 

(15,32,50) (15,44,47) (15,47,14) (15,50,26) (15,53,38) (17,3,43) (17,6,31) 
(17,9,19) (17,15,3) (17,27,6) (17,39,9) (17,19,54) 

(17,31,51) (17,43,48) (17,48,15) (17,51,27) (17,54,39) (17,16,18) (17,17,30) 
(17,18,42) (17,28,17) (17,30,41) (17,40,16) 

(17,41,28) (17,42,40);

end;

 

 

error is:

 

gecis must be subscripted

Context: ]; s.t. kisitbir{ t in 1..53,(k,i,j) in gecis}

Model processing error

 

i try a lot of think but they didn't work. Please help me!




Yahoo! kullaniyor musunuz?
Istenmeyen postadan biktiniz mi? Istenmeyen postadan en iyi korunma 
Yahoo! Posta'da
http://tr.mail.yahoo.com 
Hi;
 
I want to solve a proplem with glpk but i take an error. i give the model and the error below.
 
my model is:
 
set gecis{k in 1..9,i in 1..54,j in 1..54};
var x{1..54,1..54}, integer, <= 6,>= 0;
var y{1..18,1..54}, integer, <= 1,>= 0;
minimize hareket: sum{i in 1..18, t in 1..54} t * y[i,t];
s.t. kisitbir{t in 1..53,(k,i,j) in gecis}: x[i,t]-6*(1-y[k,t]) <= x[j,t+1];
s.t. kisitiki{t in 1..53,(k,i,j) in gecis}: x[j,t]-6*(1-y[k+1,t]) <= x[i,t+1];
data;
set gecis := (1,1,18) (1,2,30) (1,3,42) (1,10,3) (1,22,2) (1,34,1) (1,18,54) (1,30,53) (1,42,52) (1,52,10) (1,53,22)
(1,54,34) (1,19,43) (1,20,31) (1,21,19) (1,31,44) (1,33,20) (1,43,45) (1,44,33) (1,45,21) (3,4,17) (3,5,29) (3,6,41) (3,11,6)
(3,23,5) (3,35,4) (3,17,51) (3,29,50) (3,41,49) (3,49,11) (3,50,23) (3,51,35) (5,7,16) (5,8,28) (5,9,40) (5,12,9) (5,24,8)
(5,36,7) (5,16,48) (5,28,47) (5,40,46) (5,46,12) (5,47,24) (5,48,36) (5,13,15) (5,14,27) (5,15,39) (5,25,14) (5,27,38)
(5,37,13) (5,38,25) (5,39,37) (7,10,13) (7,11,14) (7,12,15) (7,13,16) (7,14,17) (7,15,18) (7,16,19) (7,17,20) (7,18,21)
(7,19,10) (7,20,11) (7,21,12) (7,1,3) (7,2,6) (7,3,9) (7,4,2) (7,6,8) (7,7,1) (7,8,4) (7,9,7) (9,22,25) (9,23,26) (9,24,27)
(9,25,28) (9,26,29) (9,27,30) (9,28,31) (9,29,32) (9,30,33) (9,31,22) (9,32,23) (9,33,24) (11,34,37) (11,35,38) (11,36,39)
(11,37,40) (11,38,41) (11,39,42) (11,40,43) (11,41,44) (11,42,45) (11,43,34) (11,44,35) (11,45,36) (11,36,39) (11,46,48)
(11,47,51) (11,48,54) (11,49,47) (11,51,53) (11,52,46) (11,53,49) (11,54,52) (13,1,45) (13,4,33) (13,7,21) (13,13,1)
(13,25,4) (13,37,7) (13,21,52) (13,33,49) (13,45,46) (13,46,13) (13,49,25) (13,52,37) (13,10,34) (13,11,22) (13,12,10)
(13,22,35) (13,24,11) (13,34,36) (13,35,24) (13,36,12) (15,2,44) (15,5,32) (15,8,20) (15,14,2) (15,26,5) (15,38,8) (15,20,53)
(15,32,50) (15,44,47) (15,47,14) (15,50,26) (15,53,38) (17,3,43) (17,6,31) (17,9,19) (17,15,3) (17,27,6) (17,39,9) (17,19,54)
(17,31,51) (17,43,48) (17,48,15) (17,51,27) (17,54,39) (17,16,18) (17,17,30) (17,18,42) (17,28,17) (17,30,41) (17,40,16)
(17,41,28) (17,42,40);
end;
 
 
error is:
 
gecis must be subscripted
Context: ]; s.t. kisitbir{ t in 1..53,(k,i,j) in gecis}
Model processing error
 
i try a lot of think but they didn't work. Please help me!


Yahoo! kullaniyor musunuz?
Istenmeyen postadan biktiniz mi? Istenmeyen postadan en iyi korunma Yahoo! Posta'da
http://tr.mail.yahoo.com

reply via email to

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