Entering Values in Table

Greetings to all friends

I have a problem about entering data in table. I defined thr two
following sets:

N Power Systems Nodes /1*6/
NNt(N,N) Node Pairs With Candidate Transmission Lines /2.6, 4.6/;
LN Candidate Transmission Line /1, 2/

I have a three dimention parameter (IT) whose first and second
elements are from set “NNt” and third element is from set “LN”. when I
wrote the following statement:

Table IT(NNt,LN) Transmission Investment Cost
1 2
2.6 7.2 5
4.6 7.2 6;

GAMS returned the following errors:

Table IT(NNt,LN) Transmission Investment Cost
**** $122
110 1 2
111 2.6 7.2 5
**** $222
112 4.6 7.2 6;
**** $222

122 One dimensional set expected
222 Row dimension inconsistent with declared dimension and
column dimension

What should I do? again, what should I do If I want to define a
variables with such elements?

\

Hi Masoud.

Try this :

sets
N /1*6/
LN /1,2/
;
Parameter
IT(N,N,Ln)/

2.6.1 7.2 , 2.6.2 5

4.6.1 7.2 , 4.6.2 6

/;

display IT;

and then define your variable in this manner too. you may need to have some ALIAS statement to use in equations.

best regards.

On Fri, Apr 15, 2011 at 12:34 PM, masoud wrote:


Greetings to all friends

I have a problem about entering data in table. I defined thr two
following sets:

N Power Systems Nodes /1*6/
NNt(N,N) Node Pairs With Candidate Transmission Lines /2.6, 4.6/;
LN Candidate Transmission Line /1, 2/

I have a three dimention parameter (IT) whose first and second
elements are from set “NNt” and third element is from set “LN”. when I
wrote the following statement:

Table IT(NNt,LN) Transmission Investment Cost
1 2
2.6 7.2 5
4.6 7.2 6;

GAMS returned the following errors:

Table IT(NNt,LN) Transmission Investment Cost
**** $122
110 1 2
111 2.6 7.2 5
**** $222
112 4.6 7.2 6;
**** $222

122 One dimensional set expected
222 Row dimension inconsistent with declared dimension and
column dimension

What should I do? again, what should I do If I want to define a
variables with such elements?


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.



\

Babak Saleck Pay
M.Sc
Socio-Economic System Engineering
Group of Industrial Engineering
University of Tehran
Tehran,Iran


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Can anyone tell me what optimality condition does GAMS Solvers use while solving NLP’s???

2011/4/19 胡辉

Hi,
You can directly set it like this:
Table IT(NN,NN,LN) Transmission Investment Cost
1 2
2.6 7.2 5
4.6 7.2 6;
It’ll be OK.


At 2011-04-15 16:04:07,masoud wrote:

Greetings to all friends

I have a problem about entering data in table. I defined thr two
following sets:

N Power Systems Nodes /1*6/
NNt(N,N) Node Pairs With Candidate Transmission Lines /2.6, 4.6/;
LN Candidate Transmission Line /1, 2/

I have a three dimention parameter (IT) whose first and second
elements are from set “NNt” and third element is from set “LN”. when I
wrote the following statement:

Table IT(NNt,LN) Transmission Investment Cost
1 2
2.6 7.2 5
4.6 7.2 6;

GAMS returned the following errors:

Table IT(NNt,LN) Transmission Investment Cost
**** $122
110 1 2
111 2.6 7.2 5
**** $222
112 4.6 7.2 6;
**** $222

122 One dimensional set expected
222 Row dimension inconsistent with declared dimension and
column dimension

What should I do? again, what should I do If I want to define a
variables with such elements?


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

BN

体验网易邮箱2G超大附件,轻松发优质大电影、大照片,提速3倍!


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

\

To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

I think you would be best served by consulting each solver manual
(http://www.gams.com/solvers/solvers.htm) and the related scientific
papers.

On Apr 26, 5:59 pm, deepak mishra wrote:

Can anyone tell me what optimality condition does GAMS Solvers use while
solving NLP’s???





\