How to define discrete variables in GA (genetic algorithm)

조회 수: 60 (최근 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 CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by