Page 2 of 2

Re: Difference between different types of moments

PostPosted: Fri Dec 12, 2014 3:28 pm
by jpfeifer

Re: Difference between different types of moments

PostPosted: Mon Dec 15, 2014 4:25 pm
by devidosti
thanks for the reply!

Re: Difference between different types of moments

PostPosted: Thu Jan 29, 2015 9:13 am
by devidosti
hey all, i absolutely need you to help me fixing this code

problem with finding the steady states and sometime blanchand and kahn condition non verified

davide

Re: Difference between different types of moments

PostPosted: Mon Feb 09, 2015 2:00 pm
by jpfeifer
Put
Code: Select all
resid(1);

before the steady command. Your model is supposed to be linear, but given initial values of 0, resid(1) returns:
Residuals of the static equations:

Equation number 1 : 0
Equation number 2 : 0
Equation number 3 : 0
Equation number 4 : 0
Equation number 5 : 0
Equation number 6 : 0
Equation number 7 : 0
Equation number 8 : -0.03475
Equation number 9 : -0.03475
Equation number 10 : 0
Equation number 11 : 0
Equation number 12 : 0
Equation number 13 : 0
Equation number 14 : 0
Equation number 15 : 0
Equation number 16 : 0
Equation number 17 : 0
Equation number 18 : 0
Equation number 19 : 0
Equation number 20 : 0
Equation number 21 : 0
Equation number 22 : 0
Equation number 23 : 0
Equation number 24 : -1
Equation number 25 : -1
Equation number 26 : -0.99
Equation number 27 : -0.99
Equation number 28 : -0.5
Equation number 29 : -0.5
Equation number 30 : 1
Equation number 31 : 1
Equation number 32 : 0
Equation number 33 : 0
Equation number 34 : -0.009537
Equation number 35 : -0.009537
Equation number 36 : -1
Equation number 37 : -0.5
Equation number 38 : 0
Equation number 39 : 0
Equation number 40 : 0
Equation number 41 : 0
Equation number 42 : 0
Equation number 43 : 0
Equation number 44 : 0
Equation number 45 : 0

The non-zero equations are the ones where the linearization must be wrong or wrongly entered.