필터 지우기
필터 지우기

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 CenterFile Exchange에서 Partial Differential Equation Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by