I have a program that works excellently in 23.8.
Using wgdx, MATLAB writes inputfile.gdx for GAMS which in turn creates outputfile.gdx and is read by MATLAB using rgdx functions - everything in a loop. It worked well in 23.8
After upgrading to 23.9, I did the gdxmrw03, 04 and 05 which reported success.
When I executed my MATLAB loop program again I notice GAMS does NOT return output to my outputfile.gdx (using matout) - all entries returns initialization value of 0. However, when I tried it as standalone, I see that matout creates the gdx file and I can see the results in gdx file when opened in GAMS.
Please I need help here else I may be forced to downgrade to 23.8 again
Thanks.
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/F9dr0uEZacAJ.
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.
Crystal,
You report that you are using matout to generate your GDX output.
That is not best option. It would be better to use generic GAMS
commands (execute_unload, e.g.) to generate the GDX.
The matout stuff exists for the case when you want to treat a call to
GAMS as something like a subroutine in MATLAB: it helps in getting
this done. This mode is convenient for the MATLAB user if there is a
GAMS expert to implement the “subroutine” in GAMS, but if your
expertise lies more in MATLAB than GAMS then you should avoid using
matout.
-Steve
On Fri, Aug 31, 2012 at 2:29 AM, Crystal wrote:
I have a program that works excellently in 23.8.
Using wgdx, MATLAB writes inputfile.gdx for GAMS which in turn creates
outputfile.gdx and is read by MATLAB using rgdx functions - everything in a
loop. It worked well in 23.8
After upgrading to 23.9, I did the gdxmrw03, 04 and 05 which reported
success.
When I executed my MATLAB loop program again I notice GAMS does NOT return
output to my outputfile.gdx (using matout) - all entries returns
initialization value of 0. However, when I tried it as standalone, I see
that matout creates the gdx file and I can see the results in gdx file when
opened in GAMS.
Please I need help here else I may be forced to downgrade to 23.8 again
Thanks.
–
“gamsworld” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/gamsworld/-/F9dr0uEZacAJ.
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.
– Steven Dirkse, Ph.D. GAMS Development Corp., Washington DC Voice: (202)342-0180 Fax: (202)342-0181 sdirkse@gams.com http://www.gams.com