semi-infinite programming with fseminf

1 回表示 (過去 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 Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

Translated by