Search found 5 matches

by stef
4 years ago
Forum: Syntax
Topic: Error in the constraint writing
Replies: 8
Views: 5107

Re: Error in the constraint writing

Hi Renger,
i write all the constraint and i don't have any problems. Thank you very much for your precious help.
Cheers, Stef.
by stef
4 years ago
Forum: Syntax
Topic: Error in the constraint writing
Replies: 8
Views: 5107

Re: Error in the constraint writing

Hi Renger, I correct the compilation and now the code runs without problems. Now i'm having problems with the writing of constrains (4), (5) and (6), because of: the presence of the variable x(i,j) instead of the variable x(i,t); the presence of the parameter a(k,i) and r(t,k) instead of the paramet...
by stef
4 years ago
Forum: Syntax
Topic: Error in the constraint writing
Replies: 8
Views: 5107

Re: Error in the constraint writing

Hi Ranger and thank for your answer. Well, now i'm going to attach the code that i wrote. I wrote only the parameter, the function objective (1) (called "fob" in the code) and the constraint (3) (called "vincolo3(i)" in the code). Please, answer me if you have more hints or if yo...
by stef
4 years ago
Forum: Syntax
Topic: Error in the constraint writing
Replies: 8
Views: 5107

Error in the constraint writing

Good morning to all. I'm trying to write the first objective function and the constraint 3 of the attached file, but GAMS gives me these error: obf .. z1 =E= sum(i,t$(ord(t)<=card(U)-d(i))), b(i,t)*x(i,t); $148 $198,154 $654,409 constr3(i) .. sum(t$(ord(t)<=card(U)-d(i)+1), x(i,t)) =L= 1; $198 U is ...
by stef
4 years ago
Forum: Modeling
Topic: Problem with Multi-objective ant colony optimization
Replies: 0
Views: 1899

Problem with Multi-objective ant colony optimization

Can someone help me with the mathematical formulation of this problem? In particular, I have problem with the range of the summation of the constraints 4, 5, 6.
Project.pdf
(1004.8 KiB) Downloaded 254 times