![]() |
Previous | Next | no_f.m |
[fk] = no_f(k, xk)
[fk, Fk] = no_f(k, xk)
\[
f_k ( x_k ) \equiv -1
\]
so that the condition
f_k ( x_k ) \leq 0
is satisfied for all
x_k
.
xk
specifies the current state vector
(only used to determine the size of the state vector at each time point).
fk
is a scalar equal to minus one.
Fk
is a row vector equal to the Jacobian of
fk
w.r.t
xk
; i.e. zero.
function [fk, Fk] = no_f(k, xk)
% no constraint case: f(x) = -1 for all x
n = size(xk, 1);
fk = -1;
Fk = zeros(1, n);
return
end