<div dir="ltr">For instance, suppose you have the very simple model:<div><br></div><div>log(c)=a*log(R)+b*un</div><div>R=c*C+G </div><div><br></div><div>c and R are your endogenous variables, un and G your exogenosu ones.</div><div><br></div><div>Then define the function:</div><div>function resid=model(param)</div><div><br></div><div>resid(1)=log(param(1))-a*log(param(2))-b*un</div><div>resid(2)=param(2)-c*param(1)-G</div><div><br></div><div>endfunction</div><div><br></div><div>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</div><div>x=fsolve([100;110],model) </div><div>should do the trick </div><div><br></div><div>Help fsolve for more details on the working of fsolve.</div><div><br></div><div>Eric.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-27 16:33 GMT+02:00 Mathseco <span dir="ltr"><<a href="mailto:rashmi.19@gmail.com" target="_blank">rashmi.19@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">could you please elaborate little more on how can i apply fsolve function<br>
here as I am a beginner in scilab?? Thanks<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031216.html" target="_blank">http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031216.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>