[Scilab-users] Simulation of static general equilbiirum model

Eric Dubois grocer.toolbox at gmail.com
Sat Sep 27 17:18:40 CEST 2014


For instance, suppose you have the very simple model:

log(c)=a*log(R)+b*un
R=c*C+G

c and R are your endogenous variables, un and G your exogenosu ones.

Then define the function:
function resid=model(param)

resid(1)=log(param(1))-a*log(param(2))-b*un
resid(2)=param(2)-c*param(1)-G

endfunction

provided that un and G are the values of your exogenous variables at the
simulation date and that you have guesstimate of 100 and 110 for C and R ,
then
x=fsolve([100;110],model)
should do the trick

Help fsolve for more details on the working of fsolve.

Eric.

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

> could you please elaborate little more on how can i apply fsolve function
> here as I am a beginner in scilab?? Thanks
>
>
>
> --
> View this message in context:
> http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031216.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/20140927/d0db1697/attachment.htm>


More information about the users mailing list