How can I set bounds for ga that change with the values of the optimization variables?
Mostra commenti meno recenti
Hi. I have lower and upper bounds for my ga optimization variables that depend on those variables' values. Is there a way to input the values of the variables in each iteration of the ga into functions that compute the lower and upper bounds vectors and input those lb and ub back into the ga?
Risposta accettata
Più risposte (1)
Torsten
il 13 Mar 2022
0 voti
Instead of using the array lb and ub, you will have to prescribe such bounds that depend on the solution variables in the Constraint Function, usually called "nonlcon" in the documentation.
2 Commenti
Walter Roberson
il 13 Mar 2022
However, it is common to use lb ub and linear or nonlinear constraints. lb and ub are the fastest kind of constraints; linear constraints are a little slower (they require multiplications), and nonlinear constraints are slowest.
Radu Andrei Matei
il 14 Mar 2022
Categorie
Scopri di più su Surrogate Optimization in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!