I am a newer in using OCCBIN, when i run the program, i got wrong message as below. can anybody help me to fix this?


Attempted to access scalefactormod(2); index out of bounds because numel(scalefactormod)=1.

Error in mkdatap_anticipated (line 101)
errvec(irfshockpos(i)) = scalefactormod(i);

Error in solve_one_constraint (line 148)

Error in runsim_cgg (line 43)
[zdatalinear zdatapiecewise zdatass oobase_ Mbase_ ] = …

Unfortunately, still the same answer: [Using occbin to solve a model with one inequality constraint)