An error 'matlabexecutionerror' occurred when i use 'min' in type optim.problemdef.OptimizationExpression
2 ビュー (過去 30 日間)
古いコメントを表示
prob = optimproblem('ObjectiveSense','maximize');
A = optimvar('A', 2, 54, 41, 'Type', 'continuous', 'LowerBound', 0);
X = sum(squeeze(A(1,:,:)) .* M); % 1*41
Y = sum(squeeze(A(2,:,:)) .* N);
f = 0.5*min(X+X,X+C)*P'-sum(sum(squeeze(A(1,:,:)).*U)); % It raises an error here when I try to use min(X+X,X+C).
g = 0.5*min(Y+Y,D+Y)*Q'-sum(sum(squeeze(A(2,:,:)).*V));
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Problem-Based Optimization Setup についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!