Finding Transpose of Matrix in GAMS and solving data reconciliation problem

Hi All,

I am new to GAMS, I have to solve a DATA RECONCILIATION problem to some chemical engineering example.
My MINLP Optimization Problem is

Min f(x)

Such that,

S_hat = S - SA’PAS
P(ASA’) = I

where
A is Matrix came from Material Balance of the System
A’ is Transpose of A
S is Co-variance Matrix
P is a Continuous Variable
S_hat is diagonal elements of matrix
I is identity matrix
for example :

A = [1 -1 -1 0;
0 0 1 -1];

can find transpose of A directly in GAMS?

S = [x1s1+y110, 0,0,0 ;
0,x2s2+y210,0,0 ;
0,0,x3s3+y310,0 ;
0,0,0,x4s4+y410];


P = [p11, 0;
p21,p22];

By matrix multiplication, can i get constraints for expressions S_hat = S - SA’PAS and P(ASA’) = I.

I would be great help if anyone can help for giving me an idea.


Thanks and Regards
Suryanarayana
PhD Student
IIT Bombay


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.

Hello Suryanarayana

I have some experience with data reconciliation and I would like to know where are your integer variables come from, since in typical Dara reconciliation problems, no integer variables are present, by your formulation I can’t see them and why are you trying to use it.

To do matrix multiplications, transposes and inverse other package can be used, as matlab and scilab (the last one is free).
Regarding the use of Scilab, I’ve developed a framework in this tool for data reconcilation and gross error detection ( https://code.google.com/p/dr-ged-benchmarks/ ), where you can find the implementations and behchmark test problems.
I know this is not a Scilab forum, but I’m suggesting this tool since I’ve tried to use Gams in the past and found Matlab/Scilab more helpfull.

Any doubts you can contact me by this personal e-mail.

Regards


2012/5/18 suryanarayana kolluri

Hi All,

I am new to GAMS, I have to solve a DATA RECONCILIATION problem to some chemical engineering example.
My MINLP Optimization Problem is

Min f(x)

Such that,

S_hat = S - SA’PAS
P(ASA’) = I

where
A is Matrix came from Material Balance of the System
A’ is Transpose of A
S is Co-variance Matrix
P is a Continuous Variable
S_hat is diagonal elements of matrix
I is identity matrix
for example :

A = [1 -1 -1 0;
0 0 1 -1];

can find transpose of A directly in GAMS?

S = [x1s1+y110, 0,0,0 ;
0,x2s2+y210,0,0 ;
0,0,x3s3+y310,0 ;
0,0,0,x4s4+y410];


P = [p11, 0;
p21,p22];

By matrix multiplication, can i get constraints for expressions S_hat = S - SA’PAS and P(ASA’) = I.

I would be great help if anyone can help for giving me an idea.


Thanks and Regards
Suryanarayana
PhD Student
IIT Bombay


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.



\

Edson Valle
edsoncv@gmail.com


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 find transpose of A directly in GAMS?

parameter A(i,j), At(j,i);

At(j,i) = A(i.j) should work.

S = [x1s1+y110, 0,0,0 ;
0,x2s2+y210,0,0 ;
0,0,x3s3+y310,0 ;
0,0,0,x4s4+y410];

P = [p11, 0;
p21,p22];

By matrix multiplication, can i get constraints for expressions S_hat = S -
SA’PAS and P(ASA’) = I.

matrix muliplication for C = A* B
parameter A(i,k) , B(k,j) ,C(i,j) ;

C(i,j ) = sum(k, A(i,k)* B(k,j))


HTH,

Yan

\

Hi Every body!
can we eneter the transpos of one variable in equation set in GAMS?

On Friday, May 18, 2012 12:00:27 PM UTC-4, kolluri wrote:

Hi All,

I am new to GAMS, I have to solve a DATA RECONCILIATION problem to some chemical engineering example.
My MINLP Optimization Problem is

Min f(x)

Such that,

S_hat = S - SA’PAS
P(ASA’) = I

where
A is Matrix came from Material Balance of the System
A’ is Transpose of A
S is Co-variance Matrix
P is a Continuous Variable
S_hat is diagonal elements of matrix
I is identity matrix
for example :

A = [1 -1 -1 0;
0 0 1 -1];

can find transpose of A directly in GAMS?

S = [x1s1+y110, 0,0,0 ;
0,x2s2+y210,0,0 ;
0,0,x3s3+y310,0 ;
0,0,0,x4s4+y410];


P = [p11, 0;
p21,p22];

By matrix multiplication, can i get constraints for expressions S_hat = S - SA’PAS and P(ASA’) = I.

I would be great help if anyone can help for giving me an idea.


Thanks and Regards
Suryanarayana
PhD Student
IIT Bombay


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Hi Azadeh



If you want for example to multiply matrix A with the transpose of it you just use PROD()



Prod((i,j), A(i,j)*A(j,i))



Cheers

Renger


\


Modelworks

Gewerbestrasse 15

3600 Thun – Switzerland

+41 79 818 53 73

Info@modelworks.ch

blog.modelworks.ch







From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Azadeh Maroufmashat
Sent: Mittwoch, 11. Juni 2014 00:04
To: gamsworld@googlegroups.com
Subject: Re: Finding Transpose of Matrix in GAMS and solving data reconciliation problem



Hi Every body!
can we eneter the transpos of one variable in equation set in GAMS?

On Friday, May 18, 2012 12:00:27 PM UTC-4, kolluri wrote:

Hi All,

I am new to GAMS, I have to solve a DATA RECONCILIATION problem to some chemical engineering example.
My MINLP Optimization Problem is

Min f(x)

Such that,

S_hat = S - SA’PAS
P(ASA’) = I

where
A is Matrix came from Material Balance of the System
A’ is Transpose of A
S is Co-variance Matrix
P is a Continuous Variable
S_hat is diagonal elements of matrix
I is identity matrix
for example :

A = [1 -1 -1 0;
0 0 1 -1];

can find transpose of A directly in GAMS?

S = [x1s1+y110, 0,0,0 ;
0,x2s2+y210,0,0 ;
0,0,x3s3+y310,0 ;
0,0,0,x4s4+y410];


P = [p11, 0;
p21,p22];

By matrix multiplication, can i get constraints for expressions S_hat = S - SA’PAS and P(ASA’) = I.

I would be great help if anyone can help for giving me an idea.


Thanks and Regards
Suryanarayana
PhD Student
IIT Bombay


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.