MATLAB to GAMS and GAMS to MATLAB
Re: MATLAB to GAMS and GAMS to MATLAB
you can try only run "gams('producer1')", in the gms file you have to put some variable or parameter in a gdx file by matout sentence. just read that gdx in the matlab file using "readgdx".
DANIEL ORLANDO MARTINEZ QUEZADA
El sábado, 29 de marzo de 2014 05:27:27 UTC-5, Saeed Sayyadi escribió:
Hello everyone!
I am trying to link Matlab and Gams.
The output of Gams model, which is named 'producer1',is the variable "y" which is a 17x104 matrix.
I type this line in command window:
y = gams('producer1')
It solves thd model but it cant assign the outputs to 'y' and returns this error:
"Number of output argument in Matlab exceed output argument specified in gams"
When I just type this line in command window:
gams('producer1')
the error doesn't appear any more.
Do you happen to help me?
Kind Regards
--
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.
Re: MATLAB to GAMS and GAMS to MATLAB
Hi,
I am trying to use matgam; however, I have got two error:
- "Unsupported data format entered." in response of running testinst example;
- "Number of output argument in Matlab exceed output argument specified in gams" whenever I try to take the output such as x = gams('qp').
The first problem is really serious since I want to give some parameter values before solve the problem. I think it may because of version mismatch.
By the way, I am using Matlab 2012a (64-bit) and the demo version of GAMS release 24.3.3 r48116 WEX-WEI over Windows 7 (64bit).
I would be grateful if you could let me know your comments.
Kind regards,
Arash
--
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.
Re: MATLAB to GAMS and GAMS to MATLAB
Hi
If it possible to you, Send me both Matlab and Gams file.
I try to solve it.
Best Regards
Ali Reza
On Wed, Jan 21, 2015 at 10:17 PM, arash moradinejad wrote:
Hi,
I am trying to use matgam; however, I have got two error:
- "Unsupported data format entered." in response of running testinst example;
- "Number of output argument in Matlab exceed output argument specified in gams" whenever I try to take the output such as x = gams('qp').
The first problem is really serious since I want to give some parameter values before solve the problem. I think it may because of version mismatch.
By the way, I am using Matlab 2012a (64-bit) and the demo version of GAMS release 24.3.3 r48116 WEX-WEI over Windows 7 (64bit).
I would be grateful if you could let me know your comments.
Kind regards,
Arash
--
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.
Re: MATLAB to GAMS and GAMS to MATLAB
Hi Alireza,
Thank you for your reply.
As a matter of fact, there is no new GAMS nor Matlab codes. I just tried to run two GAMS and Matlab test codes available by the matgams package, which are testinst and qp,
Best regards,
Arash
On Thursday, 22 January 2015 12:15:49 UTC, Ali Reza Bahari wrote:
Hi
If it possible to you, Send me both Matlab and Gams file.
I try to solve it.
Best Regards
Ali Reza
On Wed, Jan 21, 2015 at 10:17 PM, arash moradinejad wrote:
Hi,
I am trying to use matgam; however, I have got two error:
- "Unsupported data format entered." in response of running testinst example;
- "Number of output argument in Matlab exceed output argument specified in gams" whenever I try to take the output such as x = gams('qp').
The first problem is really serious since I want to give some parameter values before solve the problem. I think it may because of version mismatch.
By the way, I am using Matlab 2012a (64-bit) and the demo version of GAMS release 24.3.3 r48116 WEX-WEI over Windows 7 (64bit).
I would be grateful if you could let me know your comments.
Kind regards,
Arash
--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@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.
Re: MATLAB to GAMS and GAMS to MATLAB
Hi
Follow this steps:
1- Have a look to the PDF file i attached you(pages 2 and 7). I had attached all of you need.
2- Add the Gams path to the Matlab
Inline image 1
2- Set the environment variable.
Inline image 2
On Thu, Jan 22, 2015 at 9:40 PM, arash moradinejad wrote:
Hi Alireza,
Thank you for your reply.
As a matter of fact, there is no new GAMS nor Matlab codes. I just tried to run two GAMS and Matlab test codes available by the matgams package, which are testinst and qp,
Best regards,
Arash
On Thursday, 22 January 2015 12:15:49 UTC, Ali Reza Bahari wrote:
Hi
If it possible to you, Send me both Matlab and Gams file.
I try to solve it.
Best Regards
Ali Reza
On Wed, Jan 21, 2015 at 10:17 PM, arash moradinejad wrote:
Hi,
I am trying to use matgam; however, I have got two error:
- "Unsupported data format entered." in response of running testinst example;
- "Number of output argument in Matlab exceed output argument specified in gams" whenever I try to take the output such as x = gams('qp').
The first problem is really serious since I want to give some parameter values before solve the problem. I think it may because of version mismatch.
By the way, I am using Matlab 2012a (64-bit) and the demo version of GAMS release 24.3.3 r48116 WEX-WEI over Windows 7 (64bit).
I would be grateful if you could let me know your comments.
Kind regards,
Arash
--
- Attachments
-
- matout.gms
- (7.48 KiB) Downloaded 304 times
-
[The extension dll has been deactivated and can no longer be displayed.]
Re: MATLAB to GAMS and GAMS to MATLAB
On Fri, Jan 23, 2015 at 2:25 PM, Ali Reza Bahari wrote:
Hi
Follow this steps:
1- Have a look to the PDF file i attached you(pages 2 and 7). I had attached all of you need.
2- Add the Gams path to the Matlab
Inline image 1
2- Set the environment variable.
Inline image 2
On Thu, Jan 22, 2015 at 9:40 PM, arash moradinejad wrote:
Hi Alireza,
Thank you for your reply.
As a matter of fact, there is no new GAMS nor Matlab codes. I just tried to run two GAMS and Matlab test codes available by the matgams package, which are testinst and qp,
Best regards,
Arash
On Thursday, 22 January 2015 12:15:49 UTC, Ali Reza Bahari wrote:
Hi
If it possible to you, Send me both Matlab and Gams file.
I try to solve it.
Best Regards
Ali Reza
On Wed, Jan 21, 2015 at 10:17 PM, arash moradinejad wrote:
Hi,
I am trying to use matgam; however, I have got two error:
- "Unsupported data format entered." in response of running testinst example;
- "Number of output argument in Matlab exceed output argument specified in gams" whenever I try to take the output such as x = gams('qp').
The first problem is really serious since I want to give some parameter values before solve the problem. I think it may because of version mismatch.
By the way, I am using Matlab 2012a (64-bit) and the demo version of GAMS release 24.3.3 r48116 WEX-WEI over Windows 7 (64bit).
I would be grateful if you could let me know your comments.
Kind regards,
Arash
--
- Attachments
-
- matlabgams2.pdf
- (131.85 KiB) Downloaded 315 times
Re: MATLAB to GAMS and GAMS to MATLAB
Hi Alireza,
Thank you very much for your help.
Actually, I have followed all instructions given by you and the attached pdf and I think I have installed everything properly; however, it still does not work and it generates all previously mentioned errors.
I have solved the problem by changing the gms file directly and parse the generated matsol.gms file including all results, but it is very slow.
Many thanks and kind regards,
Arash
On Friday, 23 January 2015 11:08:24 UTC, Ali Reza Bahari wrote:
On Fri, Jan 23, 2015 at 2:25 PM, Ali Reza Bahari wrote:
Hi
Follow this steps:
1- Have a look to the PDF file i attached you(pages 2 and 7). I had attached all of you need.
2- Add the Gams path to the Matlab
Inline image 1
2- Set the environment variable.
Inline image 2
On Thu, Jan 22, 2015 at 9:40 PM, arash moradinejad wrote:
Hi Alireza,
Thank you for your reply.
As a matter of fact, there is no new GAMS nor Matlab codes. I just tried to run two GAMS and Matlab test codes available by the matgams package, which are testinst and qp,
Best regards,
Arash
On Thursday, 22 January 2015 12:15:49 UTC, Ali Reza Bahari wrote:
Hi
If it possible to you, Send me both Matlab and Gams file.
I try to solve it.
Best Regards
Ali Reza
On Wed, Jan 21, 2015 at 10:17 PM, arash moradinejad wrote:
Hi,
I am trying to use matgam; however, I have got two error:
- "Unsupported data format entered." in response of running testinst example;
- "Number of output argument in Matlab exceed output argument specified in gams" whenever I try to take the output such as x = gams('qp').
The first problem is really serious since I want to give some parameter values before solve the problem. I think it may because of version mismatch.
By the way, I am using Matlab 2012a (64-bit) and the demo version of GAMS release 24.3.3 r48116 WEX-WEI over Windows 7 (64bit).
I would be grateful if you could let me know your comments.
Kind regards,
Arash
--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@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+...@googlegroups.com.
To post to this group, send email to gams...@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.
Re: MATLAB to GAMS and GAMS to MATLAB
Hi Arash,
I would be grateful if you tell me where I can download the matgam?
If you have this file, please send me to fporras7@gmail.com
Thanks for your attention!
Kind regards,
Fabricio
El miércoles, 21 de enero de 2015, 19:47:28 (UTC+1), arash moradinejad escribió:
Hi,
I am trying to use matgam; however, I have got two error:
- "Unsupported data format entered." in response of running testinst example;
- "Number of output argument in Matlab exceed output argument specified in gams" whenever I try to take the output such as x = gams('qp').
The first problem is really serious since I want to give some parameter values before solve the problem. I think it may because of version mismatch.
By the way, I am using Matlab 2012a (64-bit) and the demo version of GAMS release 24.3.3 r48116 WEX-WEI over Windows 7 (64bit).
I would be grateful if you could let me know your comments.
Kind regards,
Arash
--
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Re: MATLAB to GAMS and GAMS to MATLAB
Semi Off Topic advice: Don't lose sight that the functions wgdx and rgdx for MatLab allow for an easier, more flexible and easier to debug interaction. Of course, running gams from MatLab is also trivial (in my experience).
Regards
Claudio
On Mon, Feb 22, 2016 at 6:44 PM, Fabricio Porras Ortiz wrote:
Hi Arash,
I would be grateful if you tell me where I can download the matgam?
If you have this file, please send me to fporras7@gmail.com
Thanks for your attention!
Kind regards,
Fabricio
El miércoles, 21 de enero de 2015, 19:47:28 (UTC+1), arash moradinejad escribió:
Hi,
I am trying to use matgam; however, I have got two error:
- "Unsupported data format entered." in response of running testinst example;
- "Number of output argument in Matlab exceed output argument specified in gams" whenever I try to take the output such as x = gams('qp').
The first problem is really serious since I want to give some parameter values before solve the problem. I think it may because of version mismatch.
By the way, I am using Matlab 2012a (64-bit) and the demo version of GAMS release 24.3.3 r48116 WEX-WEI over Windows 7 (64bit).
I would be grateful if you could let me know your comments.
Kind regards,
Arash
--
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 https://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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.