LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
map_feasblock.m
1function MAP=map_feasblock(E1,E2,E3,G2,OPT)
2if E2==2*E1^2 %exponential
3 MAP=map_scale({[-1,0;0,-1],[0.5,0.5;0.5,0.5]},E1);
4 return
5end
6
7% map_feasblock(E1,E2,E3,G2,OPT) - fits the most similar
8if nargin==5
9 if strcmpi(OPT,'scv')
10 E2=(1+E2)*E1^2;
11 end
12else
13 OPT='';
14end
15
16if E2<=2*E1^2
17 warning('E2 failure (SCV=1), setting SCV=1.001');
18 E2=(1+kpcfit_tol)*E1^2;
19end
20if E3<=(3/2)*E2^2/E1
21 warning('E3 failure, setting E3=(3/2+1e-6)*E2^2/E1');
22 E3=(3/2+kpcfit_tol)*E2^2/E1;
23end
24%[E1,E2,E3,G2]
25MAP=map_block(E1,E2,E3,G2);
26end