using occbin to solve a model with one inequality constraint

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

using occbin to solve a model with one inequality constraint

Postby sudiptokarmakar2004 » Tue Oct 14, 2014 9:16 am

rbc_testing.mod
non binding
(3 KiB) Downloaded 65 times
rbc_testing_1.mod
binding
(3.29 KiB) Downloaded 65 times
rbc_version_implement.m
m file
(2.32 KiB) Downloaded 69 times
Dear All,

I am trying to use occbin to solve a model with one inequality constraint. So I create two mod files and then try to run it by using an implementing m file. However, despite declaring the variables to be global, I get the error as:

Error using eval
Undefined function or variable 'k'.

Error in solve_one_constraint (line 159)
newviolvecbool_ = eval(constraint_difference_);

Error in rbc_version_implement (line 37)
[zdatalinear, zdatapiecewise, zdatass, oobase_, Mbase_ ] = ...


The other issue that I notice is that it is only generating one M_ struct file in the workspace where there should be two, one for the constraint binding and the other non binding. Does it mean the model is never going to the other regime? But that looks a bit weird because I tried with a very high standard deviation shock as well but with no success.

I am attaching my mod files and the m file. I am new to occbin and so any help in trying to solve the problem is highly appreciated.

Best
sudiptok
sudiptokarmakar2004
 
Posts: 6
Joined: Tue Sep 27, 2011 4:00 pm

Re: using occbin to solve a model with one inequality constr

Postby pepito_bm » Thu Oct 23, 2014 4:54 pm

Hi there,
I also have a question regarding Occbin. Is it possible for this routine to handle more than 2 inequality constraints?

Thanks in advance,
Petar
pepito_bm
 
Posts: 20
Joined: Mon Aug 25, 2014 4:10 pm

Re: using occbin to solve a model with one inequality constr

Postby jpfeifer » Fri Oct 24, 2014 8:05 am

Sorry, but at the current stage, occbin is an external package. I have not worked with it and have no experience using it. Thus, I am unable to provide support. Maybe other users can help you. Otherwise, you might need to contact its authors.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests