optimization problem with arrays
古いコメントを表示
Hello, I am trying to create a problem based optimization problem for minimazing.
To summer it up, I want to do this optimization and I don't know how to do what I have in bold:
array1 = array2 - array3 .* (optimization_variable);
A=sum(array1(array1>0));
objective = A;
Is there any way to put conditionals in an optimization problem?
Thanks in advance
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Linear Programming and Mixed-Integer Linear Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!