OccBin_Error using _* Inner matrix dimensions must agree

Using 64-bit preprocessor
Starting Dynare (version 4.5.1).
Starting preprocessing of the model file …
Found 57 equation(s).
Evaluating expressions…done
Computing static model derivatives:

  • order 1
    Computing dynamic model derivatives:
  • order 1
  • order 2
    Processing outputs …
    Preprocessing completed.

Total computing time : 0h00m00s

Error using *
Inner matrix dimensions must agree.

Error in solve_one_constraint (line 154)
relaxconstraint_ = eval(constraint_relax_difference_);

Error in runsim_borrcon_Amy (line 32)
[zdatalinear zdatapiecewise zdatass oobase_ Mbase_ ] = …

when I use OccBin to solve my model, which involves borrowing constraints similar to JME 2017, collateral constraints and macroeconomic asymmetrics, I met such an error.

Does that mean that there is sth wrong with my setting of “constraint=” or “constraintr_relax=”?

What can I do to fix it? (I use the toolkit_files_4.5., in the forum).

Does anyone have any advice on how to fix? Please do help!


Cell contents reference from a non-cell array object.

Error in solve_one_constraint (line 44)
  eval([Mbase_.param_names{i_indx_,:},'= M_.params(i_indx_);']);

Error in runsim_borrcon_Amy (line 32)
[zdatalinear zdatapiecewise zdatass oobase_ Mbase_  ] = ...

Without the files, it is impossible to tell. Note that a 4.6-compatible version of Occbin is at GitHub - JohannesPfeifer/Occbin_update


May I ask if you have solved your problem. I also have a problem with this toolkit, but my problem is on steady state as follow

Unrecognized field name “ys”.
Error in solve_one_constraint (line 49)
eval([Mbase_.endo_names{i,:} 'ss = oobase.dr.ys(i); ']);

Do you have any ideas about this problem? Thank you

Please do not doube-post. See the reply at