121,148,171 errors

30 views
Skip to first unread message

RCC

unread,
Apr 21, 2016, 9:17:45 AM4/21/16
to gamsworld
PARAMETERS
         demand(c) c;

         execseed = 1 + gmillisec(jnow);
         demand(c) = round(normal(mean(c),0.9*mean(c)));
         while ((count le 6),
                 if((demand(count)<0),
                         demand(count)=0;
                 );
                 count=count+1;
         );
         display demand;


I am having this errors:
Error 121 - error expected
Error 148 - Dimension different
Error 171 - Domain violation for set


What it is wrong with my code?

Renger van Nieuwkoop

unread,
Apr 21, 2016, 10:06:56 AM4/21/16
to gams...@googlegroups.com
Hi ???

It is really getting annoying:


* If you write to this forum, have the courtesy to put your name below your post. (I am really beginning to think that when I was young, everything was better...). A "Hi" at the start of your post might also be a sign that your parents education was fruitfull.
* If you post a problem with code, at least post code that reproduces your error and not just a part of the code, and error messages without showing where the error appears. There are many people who would like to help, but guessing what your problem is, is usually what they don't want to do (at least, I don't).
* Instead of the notorious and hilarious RTFM ("Read the fucking manual"), I sometimes would love to shout: RTFG ("Read the Fucking Guidelines"), but perhaps my parents were lucky, and I listened to them...

Cheers
Renger

____________________
Modelworks
Gewerbestrasse 15
3600 Thun – Switzerland
+41 79 818 53 73
In...@modelworks.ch<mailto:In...@modelworks.ch>
blog.modelworks.ch
________________________________
From: gams...@googlegroups.com [gams...@googlegroups.com] on behalf of RCC [renato.coel...@gmail.com]
Sent: Thursday, April 21, 2016 15:06
To: gamsworld
Subject: 121,148,171 errors
--
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<mailto:gamsworld+...@googlegroups.com>.
To post to this group, send email to gams...@googlegroups.com<mailto:gams...@googlegroups.com>.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages