Unrecognized function or variable 'snopt'. Error in Untitledidk (line 362) [x, f, inform, xmul, fmul] = snopt(xg, xlwr, xupr, xmul, xstate, ... What is this function

1 次查看(过去 30 天)
% bounds on v-infinity matching (equality) constraint
flow(3) = 0.0;
fupp(3) = 0.0;
flow = flow';
fupp = fupp';
xmul = zeros(3, 1);
xstate = zeros(3, 1);
fmul = zeros(3, 1);
fstate = zeros(3, 1);
% use snopt to find optimal solution
[x, f, inform, xmul, fmul] = snopt(xg, xlwr, xupr, xmul, xstate, ...
flow, fupp, fmul, fstate, 'fbyfunc');

回答(1 个)

G A
G A 2021-9-3
https://github.com/snopt/snopt-matlab
Matlab interface for sparse nonlinear optimization software SNOPT.
Requires the SNOPT software package.

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by