How fmincon can manipulate continuous and discrete variables ?

3 ビュー (過去 30 日間)
houda mejri
houda mejri 2017 年 3 月 30 日
コメント済み: houda mejri 2017 年 4 月 10 日
Hello, I work on optimization with fmincon based on an artificial learning algorithm. And I used two types of variables: continuous and discrete. I got this error there, I think that fmincon can not work on both types of variables together. Is it possible ? thank you in advance
<<
>>

採用された回答

Alan Weiss
Alan Weiss 2017 年 3 月 30 日
No, fmincon does not use discrete variables, only continuous.
Alan Weiss
MATLAB mathematical toolbox documentation
  3 件のコメント
Alan Weiss
Alan Weiss 2017 年 4 月 3 日
If you have just a few possible values, say a 20-by-400 set of discrete variables, then I suggest that you make a 20-by-400 set of problems for fmincon and solve them one at a time. However, if you have a large number of possible integer points (many million), then I have no suggestions for you.
In general, integer constraints make problems much, much harder. fmincon is not at all suited to solving this kind of problem.
Alan Weiss
MATLAB mathematical toolbox documentation
houda mejri
houda mejri 2017 年 4 月 10 日
Hello, thank you very much for the answer. In fact, I have discrete and continuous variables at the same time and I have to manage them all for the function fmincon. The number of discrete variables does not exceed 400 in principle. How can I manage them? thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by