Hi Lads,
attached is a snippet of code which I am using in my program.
/* Initial Parameters */
param m, integer, >0;
/* number of candidate base stations j*/
param n, integer, >0;
/* number of Test points i */
/* Sets */
set S :=1..m;
/* set of base stations */
set I :=1..n;
/* set of Test Points
> I have 2 queries that I need help on.
> 1. printf, I can't seem to be able to use printf without an error
> popping up saying that the quote(single or double) is not allowed.
> Has anyone else ever come across this?
Why not? If the string contains a single quote, you need to enclose it
with doub
> Would you be able to show a simple demonstration of a piece of code
> that uses the pseudo-random generator? Would it be something like
> this:
>
> param d:= uniform01();
Exactly. Or like this, for example:
param c{j in J} := if Uniform01() <= 0.5 then 0 else 1;
___