% occbinrun 
% This Script runs thr Constraint and Non-constraint version 
% of Occassionally binding Constarints of DGSE models


global M_ oo_

modnam = "occbin";
modnamstar = "nooccbin";   % No Binding Constraint model name 

% Impose the Constraints (Binding is onstraint) 

constraint = "D<-1.5*GDP";
constraint_relax ="D<-1.5*GDP";

nperiods=2000;

% Declare the Command for estimation. 

[zdatalinear, zdatapiecewise, zdatass,  oobase_, Mbase_  ] = ...
solve_one_constraint(modnam,modnamstar,...
constraint, constraint_relax, ...
nperiods);