can genetic algorithm optimizer be used with nonlinear constraint as a simulation function?

 採用された回答

Walter Roberson
Walter Roberson 2017 年 3 月 6 日

0 投票

6 件のコメント

Hello Walter, I tried that before, it did not work.
Walter Roberson
Walter Roberson 2017 年 3 月 6 日
Are you using integer constraints, or population type bitstring? If you are then nonlcon does not apply.
Alan Weiss
Alan Weiss 2017 年 3 月 6 日
You might need to manage which workspace Simulink addresses, as explained in this Answer.
Alan Weiss
MATLAB mathematical toolbox documentation
yes I am using linear integer constraints beside the simulation based constraint. My simulation is basically a Matlab code, I am not using Simulink.
Walter Roberson
Walter Roberson 2017 年 3 月 8 日
If you need integer constraints along with nonlinear constraints, then you need to use a work-around. Do not tell it there are integer constraints: instead provide your own custom population function, mutation function, and cross-over function, all of which "just happen" never to emit a population member that would violate your integer constraints.
Thanks Walter, it seems this is the only way to do it.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by