フィルターのクリア

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 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