Help! simple two-country model: Matrix is singular to...

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.

Help! simple two-country model: Matrix is singular to...

Postby logsu » Thu Aug 25, 2011 9:06 am

Dear experts,

In the attachment is a extremely simple two-country model with labor, to test the capital flows caused by technology difference. It is a social planner's problem, the two countries are identical in every aspect except for their different capital share values in the Cobb-Douglas production fucntion ( I tend to test CES functions later). The two country face a symmetric permanent technology shcok.

but Matlab warns:

Warning: Matrix is singular, close to singular or badly scaled.
Results may be inaccurate. RCOND = NaN.
> In sim1 at 84
In simul at 93
In ces1_0 at 180
In dynare at 132
Warning: Matrix is singular to working precision.
> In sim1 at 84
In simul at 93
In ces1_0 at 168
In dynare at 132
.....

Some other things:
1. The initial values I used here is what the program generates ( it can still solve the steady-state values before warning)
2. In the end it warns: maximum number of iterations is reached (modify options_.maxit_), I changed the options, but nothing changed..

I wonder why this thing happens? I really appreciate your help!
Attachments
two-country.mod
(2.21 KiB) Downloaded 166 times
logsu
 
Posts: 4
Joined: Thu Aug 25, 2011 8:38 am

Re: Help! simple two-country model: Matrix is singular to.

Postby SébastienVillemot » Mon Sep 05, 2011 2:53 pm

There is a singularity when solving the nonlinear problem. This means that there is no unique path leading from one equilibrium to the other.

I can't be more precise than that: you need to investigate in order to find what could cause this in your model.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Help! simple two-country model: Matrix is singular to.

Postby kyri82 » Fri Sep 09, 2011 2:30 pm

Dont you need to include the law of motion of the exogenous variables, z1 and z2?

Kyriacos
kyri82
 
Posts: 141
Joined: Thu Feb 10, 2011 6:14 pm
Location: Toulouse - France


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests

cron