Solve equations with constraints
古いコメントを表示
Can you help me solve equation f with the different constraints established?
I can't get the optimal solution:
syms A k q c k;
beta= sym('beta');
q=(A+beta*k)/3;
c=(A+beta*k)/3;
k=(2*A*beta)/(9-2*beta^2);
f= A*q+beta*q*k-q^2-c*q- k^2/2;
solve(f)
if f>=0
if c>=0
if q>=0
if beta >0
if beta-1<=0
if A>0
end
end
end
end
end
end ;
King regards
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Systems of Nonlinear Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!