Originally posted by: ljb843
execute{
// to get Normal distribution
var y1, y2, y3, y4, y5, y6;
y1=Math.random();
y2=Math.log(y1);
y3=Math.sqrt(y2);
y4=6.28*y1;
y5=Math.sin(y4);
y6=(-2)*y3*y5;
DemandKS[1]=11000+1000*y6;
DemandKS[2]=7500+500*y6;
DemandKS[3]=15000+1000*y6;
DemandKS[4]=12000+1000*y6;
DemandKS[5]=19000+1000*y6;
}
I got " EXCEPTION_ACCESS_VIOLATION "error,why? thank you very much!!
#DecisionOptimization#OPLusingCPLEXOptimizer