How to define discrete variables in GA (genetic algorithm)

41 ビュー (過去 30 日間)
ly
ly 2019 年 12 月 1 日
コメント済み: ly 2019 年 12 月 4 日
Hi,
I need to optimize a function has four variables by GA tool (genetic algorithm).
Two variables are continuous like: x1=[1 5], x2=[22 34]
Two variables are discrete like:
x3=[1 1.5 2 2.24 3 3.35 3.5 4 4.5 5],
x4=[17 19 20 21 22 25 27 30 33]
How to define discrete variables in GA (genetic algorithm).
I use GA tool.

回答 (1 件)

Stephan
Stephan 2019 年 12 月 2 日
  1 件のコメント
ly
ly 2019 年 12 月 4 日
I used R2012b and can't find the files :
cantileverVolumeWithDisc.m, cantileverConstraintsWithDisc.m and cantileverMapVariables.m
in this link:

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

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by