Generate random numbers with a constraint
Afficher commentaires plus anciens
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 commentaires
KSSV
le 11 Oct 2022
What are the constraints?
Xiaobo Dong
le 11 Oct 2022
Rik
le 11 Oct 2022
It does matter what the contstraints are if you want an efficient implementation.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Random Number Generation dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!