フィルターのクリア

a question about bvp4c

1 回表示 (過去 30 日間)
frank
frank 2012 年 7 月 30 日
Dear friends;
I wanna solve an optimal control problem with free-final-time by means of bvp4c; so I have to use a function like:
function res = bc(ya,yb)
res = [ ya(1) - 1; ya(2) - 2; yb(1) - 3; yb(4); yb(3)*yb(2)-0.5*yb(4)^2];
Now, I have 2 questions:
1. The equation which should be placed in the last array of res matrix is too long, so can I save it in another parameter and then use that parameter in matrix?
2. This equation is a function of some other parameters (q1, q2, dq1, dq2); so should I replace them by yb(1)-yb(4)? And how? (Because as I mentioned my equation is too large).
Regards

回答 (0 件)

カテゴリ

Help Center および File ExchangePartial Differential Equation Toolbox についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by