Contents
function [overlineC,underlineC] = thresholds(maxN,vFuncs,phi,omega,varargin)
thresholds.m
Calculates entry and exit thresholds from oligopolists' equilibrium continuation values.
Calculate the entry and exit thresholds.
bellman.m creates maxN, vFuncs, phi(.), and omega.
overlineC=zeros(maxN,1); underlineC=zeros(maxN,1); for i=1:maxN vi=squeeze(vFuncs(:,:,i)); if min(vi(:,i))<=phi(i); overlineC(i)=omega(find(vi(:,i)<=phi(i),1,'last')); else overlineC(i)=omega(1); end if min(vi(:,i))==0; underlineC(i)=omega(find(vi(:,i)==0,1,'last')); else underlineC(i)=omega(1); end end
Input argument "maxN" is undefined. Error in ==> thresholds at 10 overlineC=zeros(maxN,1);
Report results if this is a test run.
if nargin > 4 overlineC underlineC end
End of File
end