Researcher
Dear Sir,
I have a question regarding programming codes for gurobi working in python.
Does gurobi have the feature as below: ? How to write codes for random normal distribution to be assigned to a variable?
x = …. random.normal(mean, standard deviation, 12) # this creats 12 random numbers and put them in x.
Thank you
Han
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Han,
I'm not sure what you mean. Should the variable be fixed to that value? You can add constraints that force a variable to a certain value. While gurobi itself cannot generate random values, but I would recommend pandas for that.
0
Post is closed for comments.
Comments
2 comments