--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To post to this group, send email to gams...@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
If you are having problems getting started with GDXMRW, you should
look at the mini-FAQ at http://www.gams.com/~steve/gdxmrw.html. The
last topic there addresses this issue.
-Steve
--
Steven Dirkse, Ph.D.
GAMS Development Corp., Washington DC
Voice: (202)342-0180 Fax: (202)342-0181
sdi...@gams.com
http://www.gams.com
GAMS 23.6.4 (Windows-64bit) solves the issues. I mean I can
run the test gdxmrw05 successfully now. Thanks,
Lili
I'm was trying to transfer some data between Matlab and
GAMS. The original GAMS model is the very typical example
from Dr. Steven Dirkse's documentation.
$set matout "'matsol.gdx', x, dual ";
set i /1*2/,
j /1*3/;
alias (j1,j);
parameter
Q(j,j1) /
1 .1 1.0
2 .2 1.0
3 .3 1.0 /,
A(i,j) /
1 .1 1.0
1 .2 1.0
1 .3 1.0
2 .1 -1.0
2 .3 1.0 /,
b(i) /
1 1.0
2 1.0 /,
c(j) /
1 2.0 /;
$if exist matdata.gms $include matdata.gms
variables obj;
positive variable x(j);
equation cost, dual(i);
cost.. obj =e= 0.5*sum(j,x(j)*sum(j1,Q(j,j1)*x(j1))) +
sum(j,c(j)*x(j));
dual(i).. sum(j, A(i,j)*x(j)) =g= b(i);
model qp /cost,dual/;
solve qp using nlp minimizing obj;
execute_unload %matout%;
------------------------------------------------
I want to replace the parameters of A, Q, b and c from
Matlab.
First, I successfully replaced A and Q by using the
following codes:
>> s.name = 'A'; s.val = [1 1 2; -1 0 2]; s.type =
'parameter'; s.form = 'full';
>> x = gams('qp_test',s)
Then, I failed to replaced vector b and c by using both of
below codes:
1. set b as column vector
>> s.name = 'b'; s.val = [2.0; 2.0]; s.type = 'parameter';
s.form = 'full';
>> x = gams('qp_test',s)
2. set b as row vector
>> s.name = 'b'; s.val = [2.0 2.0]; s.type = 'parameter';
s.form = 'full';
>> x = gams('qp_test',s)
------------------------------------
The errors of (1) and (2) are the same:
??? Error using ==> gams
abnormal GAMS termination running C:\Program
Files\GAMS23.6\gams.exe qp_test lo=0: check listing file
I checked the .lst file, but the hint information in .lst is
not helping at all.
Please help.
--
Best regards,
Lili
LL,could you solve the problem because I have the same and I don't know the reason.
--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
LL,
could you solve the problem because I have the same and I don't know the reason.
El martes, 5 de abril de 2011 15:59:55 UTC-6, LL escribió: