[Scilab-users] Simulation of static general equilbiirum model

Eric Dubois grocer.toolbox at gmail.com
Sun Sep 28 10:03:58 CEST 2014


Hi

As expalined peviously you hav to write a function with a vetor of size 8
(the number of endogenous variables) as input and a vetcor of size 8 (the
number of equations) as output, each corrdinates of this vector being the
residual of an equation (look at the example, it seems to me easy to
tarnspsoe to your case...)

It should look like:

function resid=Solve_m(param)
resid(1)=param(4)-(1/(A*(param(2)/param(1))*(alpha/(1-alpha)))^(alpha-1));
resid(2)=param(7)-1/(A*(param(2)/param(1))*(alpha/(1-alpha)))^(alpha)
[etc.];
endfunction

then
sol=fsolve(Solve_m)
w=sol(1).

Eric.


2014-09-27 22:53 GMT+02:00 Mathseco <rashmi.19 at gmail.com>:

> If i do some steps manually then need to set this function to zero and want
> to calculate value of 'r', Can anybody tell me the code to write for it...
> (except r here..all other variables are exogenous in this function)
>
>
> L*((Px*A*(1-alpha))^(1/alpha))*r^(-1/alpha)+(S*((Py*B*(1-beeta))^(1/beeta))*r^(-1/beeta))-K=0;
>
>
>
>
>
>
> --
> View this message in context:
> http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031222.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive
> at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140928/9d9d180f/attachment.htm>


More information about the users mailing list