Dear GAMS community,
I am currently forming a bilevel programming model which I want to solve with MATLAB.
For this reason I believe the problem (obj functions and constraints) will be introduced to GAMS and eventually call MATLAB so as to utilize the GA function.
My question is whether there is a documentation of how to pass solutions from GAMS to MATLAB, process these data with MATLAB and return them to GAMS.
Due to the fact that I am new to this kind of modelling, any additional comments are welcome.
Thank you in advance,
Konstantinos Petridis
Ph.D. Student
Department of Forestry and Management of the Environment and Natural Resources
–
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/groups/opt_out.
Konstantinos: Why don’t you try a quick and dirty solution, like
PUTTING to a text file from GAMS, reading it from MATLAB and then back
to GAMS with $include ?
You can use any scripting language you know to handle this (python, VBA, etc).
Hope to help!
Claudio
On Thu, Dec 12, 2013 at 7:56 AM, Κωνσταντίνος ΠετÏίδης
wrote:
Dear GAMS community,
I am currently forming a bilevel programming model which I want to solve
with MATLAB.
For this reason I believe the problem (obj functions and constraints) will
be introduced to GAMS and eventually call MATLAB so as to utilize the GA
function.
My question is whether there is a documentation of how to pass solutions
from GAMS to MATLAB, process these data with MATLAB and return them to GAMS.
Due to the fact that I am new to this kind of modelling, any additional
comments are welcome.
Thank you in advance,
Konstantinos Petridis
Ph.D. Student
Department of Forestry and Management of the Environment and Natural
Resources
–
“gamsworld” group.
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/groups/opt_out.
\
Claudio,
thank you for your response.
Is there a toy example so I could see how to implement this?
Thank you very much
Konstantinos
Τη Î Îμπτη, 12 ΔεκεμβÏίου 2013 12:56:45 μ.μ. UTC+2, ο χÏήστης Κωνσταντίνος ΠετÏίδης ÎγÏαψε:
Dear GAMS community,
I am currently forming a bilevel programming model which I want to solve with MATLAB.
For this reason I believe the problem (obj functions and constraints) will be introduced to GAMS and eventually call MATLAB so as to utilize the GA function.
My question is whether there is a documentation of how to pass solutions from GAMS to MATLAB, process these data with MATLAB and return them to GAMS.
Due to the fact that I am new to this kind of modelling, any additional comments are welcome.
Thank you in advance,
Konstantinos Petridis
Ph.D. Student
Department of Forestry and Management of the Environment and Natural Resources
–
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/groups/opt_out.