Solve system of Linear Equations with Constraints.
7 ビュー (過去 30 日間)
古いコメントを表示
I have the following system of equations with a constraint:
n equations with n unknowns
Here are all known. (Its a known n*n matrix of values).
How do I find all the (vector of 's)?
0 件のコメント
採用された回答
Matt J
2021 年 11 月 12 日
編集済み: Matt J
2021 年 11 月 12 日
[V,e]=eig(P.','vector');
[~,imin]=min(abs(e-1));
piVector=V(:,imin)/sum(V(:,imin));
1 件のコメント
Matt J
2021 年 11 月 12 日
編集済み: Matt J
2021 年 11 月 12 日
@atharva aalok Though you haven't mentioned it, I'm assuming P is a stochastic matrix. Otherwise, there is no guarantee the equations have a solution.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!