Generate random numbers with a constraint
显示 更早的评论
I want to generate several numbers that meet a constraint. The constraint may be kind of complex, nonlinearity for example.
It occurs to me that there are also constraint input in the optimization toolbox. In some intelligent algorithm like ga, i guess the toolbox can generate input parameters according to the constraint. I want to know how it works and implement this function in my own script.
3 个评论
KSSV
2022-10-11
What are the constraints?
Xiaobo Dong
2022-10-11
Rik
2022-10-11
It does matter what the contstraints are if you want an efficient implementation.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Surrogate Optimization 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!