필터 지우기
필터 지우기

how to set lower and upper bounds for variables to be 0.5 and 2.5 with step 0.5

조회 수: 3 (최근 30일)
Tarek Omar
Tarek Omar 2017년 12월 7일
답변: Alan Weiss 2017년 12월 8일
how to set lower and upper bounds for variables to be 0.5 and 2.5 with step 0.5 (Taking discrete values from a given set using genetic algorithm)

답변 (1개)

Alan Weiss
Alan Weiss 2017년 12월 8일
Use Mixed Integer Optimization. Have a variable x(1) be integer-valued with a lower bound of 0 and an upper bound of 4. Take y = 0.5 + x(1)/2.
Alan Weiss
MATLAB mathematical toolbox documentation

카테고리

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