フィルターのクリア

how to keep gamultiobj goals positive

2 ビュー (過去 30 日間)
Steven Taggart
Steven Taggart 2017 年 10 月 19 日
コメント済み: Alan Weiss 2017 年 10 月 24 日
Hello,
I am trying to optimise a function using the GAMULTIOBJ tool, the function takes a 12x1 input vector and returns a 2x1 output vector, the input vector is the variables of the optimisation and the output are the goals that its trying to minimise. The problem is any time I try to run the optimisation the goals are negative numbers, I need to ensure that they stay positive. How do I put constraints on the goals alone but leave the input vector unconstrained?
Many thanks

採用された回答

Alan Weiss
Alan Weiss 2017 年 10 月 19 日
If you have R2014b or later, use a nonlinear constraint function. Use one nonlinear constraint for each objective function. To save time, after debugging your constraints, you might want to use the technique in Objective and Nonlinear Constraints in the Same Function.
Alan Weiss
MATLAB mathematical toolbox documentation
  7 件のコメント
Steven Taggart
Steven Taggart 2017 年 10 月 23 日
Ah right, I using the GAMULTIOBJ tool, can you constrain the output to be positive?
I have achieved what I need with the FGOALATTAIN multi-objective tool but id rather use the GA one if possible.
Steven
Alan Weiss
Alan Weiss 2017 年 10 月 24 日
As I stated in my original answer, if you have R2014b or later, then yes, gamultiobj accepts nonlinear constraints. Otherwise, no.
Alan Weiss
MATLAB mathematical toolbox documentation

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

その他の回答 (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