Hi,
you could
call some java from OPL as can be seen in
OPL scriptingYou could also
call python:
import numpy as np
f = np.random.gamma(3, 20, 10)
print(f)
to generate values that you would then use within OPL
------------------------------
[Alex] [Fleischer]
[EMEA CPLEX Optimization Technical Sales]
[IBM]
------------------------------
Original Message:
Sent: Mon March 28, 2022 02:08 PM
From: Jia Zhong
Subject: Generate random values of Gamma distribution
Hi all,
I have been looking for posts about random values following specific distribution and find options of using Java or code the pdf mathematically.
I would like to try both. But I dont have any basics of Java and pdf of gamma is a integration of the exponential function.
I wonder do we have any model examples about how to setup the random numbers following specific distribution?
Thanks,
Jia
#DecisionOptimization