sets:member/@ole('C:\Users\Administrator\Desktop\投资.xlsx','zc')/:r,x,p,q;endsets
[obj] max=a*R-(1-a)*Q;@sum(member(i):r(i)*x(i)-p(i)*x(i))=R;@max(member(i):x(i)*q(i))=Q;@sum(member(i):(1+p(i))*x(i))<m;datar=@ole('C:\Users\Administrator\Desktop\投资.xlsx','shou');p=@ole('C:\Users\Administrator\Desktop\投资.xlsx','fare');q=@ole('C:\Users\Administrator\Desktop\投资.xlsx','lost');a=?;m=1;endsets
[obj] max=a*R-(1-a)*Q;@sum(member(i):r(i)*x(i)-p(i)*x(i))=R;@max(member(i):x(i)*q(i))=Q;@sum(member(i):(1+p(i))*x(i))<m;datar=@ole('C:\Users\Administrator\Desktop\投资.xlsx','shou');p=@ole('C:\Users\Administrator\Desktop\投资.xlsx','fare');q=@ole('C:\Users\Administrator\Desktop\投资.xlsx','lost');a=?;m=1;endsets