Originally posted by: SystemAdmin
Yulian,
the numbers you generate are independent of the actual numbers in your set.
random() just generates a number from the interval
0,1.
Maybe you will have to multiply them with the value, or alike (whatever
you have in mind with your approach).
Actually there are different numbers generated.
See e.g. th following code snippet
{int} x={1, 4, 3} ;
float v[x];
execute
{
for(var j=1;j<=2;j++){
for(var i in x) v[i]=Math.random();
writeln(v);
}
}
which yields to
[0.0012512 0.56357 0.1933]
[0.80872 0.58499 0.47986]
When you restart the whole OPl-RunConfiguration you will get
the same numbers as the seed for the random number generator
did not change. If you want that, you will have to explicitely set the
seed of the generator.
Hope this helps a bit.
Best regards
Norbert
#DecisionOptimization#OPLusingCPLEXOptimizer