1function [TF] = mmap_isfeasible(
MMAP,TOL)
2% Checks whether a
MMAP is feasible up to the given tolerance.
3% If the tolerance
is not specified, the
default tolerance mapqntbx_feastol
7 TOL = 10^(-mapqntbx_feastol);
11 if max(max(abs(imag(
MMAP{1})))) > TOL
17% rows of D0 + D1 sum to zero
18% diagonal elements of D0 are < 0
19% non-diagonal elements of D0 are >= 0
20% elements of D1 are >= 0
21TF = map_isfeasible(
MMAP);
28% elements of D1c are >= 0
30 smallest = min(min(
MMAP{2+c}));
37% D1 = D11 + D12 + ... + D1C
42if max(max(abs(S))) > TOL