hello everybody
i write below code for finding minimum argument between a lot of
arguments (100) but I can’t get to minimum with resulting
corresponding error?!
================
set i /1*100/
parameter x(i);
x(i)=uniform(0,1);
loop(i,
mm=min(x(i));
);
display mm;
***Error 203
Too few arguments for function
anybody can help me?!
\
Hi Saman
write as
set i /1*100/
parameter x(i);
x(i)=uniform(0,1);
mm=smin(i,x(i));
display mm
On Wed, Oct 5, 2011 at 7:30 PM, saman wrote:
hello everybody
i write below code for finding minimum argument between a lot of
arguments (100) but I can’t get to minimum with resulting
corresponding error?!
================
set i /1*100/
parameter x(i);
x(i)=uniform(0,1);
loop(i,
mm=min(x(i));
);
display mm;
***Error 203
Too few arguments for function
anybody can help me?!
\
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.
tnx verymuch
On Wed, Oct 5, 2011 at 7:56 PM, ali wrote:
Hi Saman
write as
set i /1*100/
parameter x(i);
x(i)=uniform(0,1);
mm=smin(i,x(i));
display mm
On Wed, Oct 5, 2011 at 7:30 PM, saman wrote:
hello everybody
i write below code for finding minimum argument between a lot of
arguments (100) but I can’t get to minimum with resulting
corresponding error?!
================
set i /1*100/
parameter x(i);
x(i)=uniform(0,1);
loop(i,
mm=min(x(i));
);
display mm;
***Error 203
Too few arguments for function
anybody can help me?!
\
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.
Hi Saman
Use smin, which is well documented (and be sure to have a good look at the documentation of loop so you’ll understand your mistake!)
Cheers
Renger
Sent from my iPhone
Am 05.10.2011 um 17:00 schrieb saman :
hello everybody
i write below code for finding minimum argument between a lot of
arguments (100) but I can’t get to minimum with resulting
corresponding error?!
================
set i /1*100/
parameter x(i);
x(i)=uniform(0,1);
loop(i,
mm=min(x(i));
);
display mm;
***Error 203
Too few arguments for function
anybody can help me?!
–
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.
\
Tnx Renger
On Wed, Oct 5, 2011 at 11:28 PM, Renger Gmail wrote:
Hi Saman
Use smin, which is well documented (and be sure to have a good look at the documentation of loop so you’ll understand your mistake!)
Cheers
Renger
Sent from my iPhone
Am 05.10.2011 um 17:00 schrieb saman :
hello everybody
i write below code for finding minimum argument between a lot of
arguments (100) but I can’t get to minimum with resulting
corresponding error?!
================
set i /1*100/
parameter x(i);
x(i)=uniform(0,1);
loop(i,
mm=min(x(i));
);
display mm;
***Error 203
Too few arguments for function
anybody can help me?!
–
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.
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.