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 <[email protected]>:

> 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
> [email protected]
> http://lists.scilab.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to