필터 지우기
필터 지우기

semi-infinite programming with fseminf

조회 수: 5 (최근 30일)
Pedro Silva
Pedro Silva 2021년 7월 7일
답변: Kapil Gupta 2021년 7월 8일
I'm trying to solve this model using fseminf, but the solver its notsolving it good. x0, v and u are data that is given, same as d.
t = 0:T/1000:T;
g=0;
for i=1:n-1
for j=i+1:n
for k=1:dim
g=g-(((x0(i,k)-x0(j,k)+t.*(q(i).*v(i).*u(i,k)-q(j).*v(j).*u(j,k))).^2)-d^2);
end
end
end
This is my constraint function, what am I doing wrong?
Thanks

답변 (1개)

Kapil Gupta
Kapil Gupta 2021년 7월 8일
I assume you want to know how you can program using fseminf. The following MATLAB documentation has details for the same, you can check this out:

카테고리

Help CenterFile Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by