How to transmit variables in problem structure
4 ビュー (過去 30 日間)
古いコメントを表示
I am trying to set up a problem structure for fmincon
...
gs = GlobalSearch;
problem = createOptimProblem('fmincon','objective', @objective, 'x0', x0, ...
'Aineq', A, 'bineq', B, 'Aeq', Aeq, 'beq', Beq, 'lb', lb, ...
'ub', ub, 'nonlcon', nonlincon, 'options', optoptim);
run(gs,problem)
However the function 'objective' needs some values inserted
function [f,g] = objective(x0,t1,t2,t3,t4,t5)
...
How can I transmit the values t1,...,t5 ? They are vectors I define earlier in the code
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Nonlinear Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!