Search found 7 matches

by s0r0n
5 years ago
Forum: Syntax
Topic: put command
Replies: 5
Views: 4174

Re: put command

Thank you again. It's getting better and better every time :D
How come it works correctly since you used only the f argument inside the loop? Also how can you put labels for the sets as well?
by s0r0n
5 years ago
Forum: Syntax
Topic: put command
Replies: 5
Views: 4174

Re: put command

Thank you very much! It works that way, however it's not very easy to read, since all the values of K are printed first, then sumK, Pline etc.. Thus can't check each equation. Ideally what I want to see is : ---------------------K()-------sumK()---------P_line()-------- Q_line() eq_net9(1,1,1)--k(1,...
by s0r0n
5 years ago
Forum: Syntax
Topic: put command
Replies: 5
Views: 4174

put command

Hello! My program in GAMS is working, but some results are not what I was expecting. I need to check some of my equations line by line, to see what value each variable has in every iteration. So I need a report in excel, which I know will be done with the put command. What I want to see for example ...
by s0r0n
5 years ago
Forum: Syntax
Topic: variable syntax problem
Replies: 7
Views: 5079

Re: variable syntax problem

I get that, this picture might help you get my point,it wasn't uploaded at my previous post
by s0r0n
5 years ago
Forum: Syntax
Topic: variable syntax problem
Replies: 7
Views: 5079

Re: variable syntax problem

I need to solve the problem as mip
by s0r0n
5 years ago
Forum: Syntax
Topic: variable syntax problem
Replies: 7
Views: 5079

Re: variable syntax problem

Thank you for your response,second issue is solved. For the first one, I want to do something like this

Code: Select all

Set i /1*24/
               t /1*24/;
Variables
sqr(V(i,t));
but 4 errors appear all the time.
by s0r0n
5 years ago
Forum: Syntax
Topic: variable syntax problem
Replies: 7
Views: 5079

variable syntax problem

Hello, I have 2 issues. Firstly I need to declare the square of a variable with 2 arguments, but sqr(V(i,t)) doesn't work. As for the other, I have the following parameter: LPline_max(f,t,seg) and declared the variable LP_line(f,t,seg). However the following equation gives the errors 145 and 148 for...