MATLAB Answers

How lower bound and upper bound value can be specify in fgoalattain

3 ビュー (過去 30 日間)
Asad Abbas
Asad Abbas 2016 年 8 月 18 日
編集済み: Alan Weiss 2016 年 8 月 18 日
I have 13 variables 4 objective functions. I am using "fgoalattain" optimization tool. For lower bound and upper bound values I mentioned
Lower: [0 0 0 0 0 0 0 0 0 0 0 0 0]
Upper: [1 1 1 1 1 1 1 1 1 1 1 1 1]
variable always take value between 0 and 1.
How I can specify value only 0 or 1? as randi([0 1], x, y)

  0 件のコメント

Sign in to comment.

採用された回答

Alan Weiss
Alan Weiss 2016 年 8 月 18 日
編集済み: Alan Weiss 2016 年 8 月 18 日
fgoalattain is not a discrete-variable solver, it solves only for continuous variables.
However, with only 13 variables, it should not be hard to generate manually all 8192 possible binary values and see which ones look best (take the four objective functions and find the Pareto points).
Alan Weiss
MATLAB mathematical toolbox documentation

  0 件のコメント

Sign in to comment.

その他の回答 (0 件)

タグ


Translated by