フィルターのクリア

define the binary variable in Matlab

24 ビュー (過去 30 日間)
Imane hammou ouali
Imane hammou ouali 2019 年 5 月 26 日
回答済み: Walter Roberson 2019 年 5 月 27 日
Hello experts,
I have an optimization problem that i have to solve and i want to define the binary variable in Matlab as constraint.
how can i define it thank you in advance.

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 5 月 27 日
The MATLAB family is not completely lacking in binary variables, but only in the form of GF2 (Galois Field) ... or things you could convince the symbolic engine to do if you were stubborn enough.
What it has for use with optimizers is variables that are constrained to be integers and for which you set lower bound 0 and upper bound 1. These can only be used in a few optimizers.
Otherwise see
There is no way to create such a variable for the continuous optimizers such as fmincon()

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by