<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Dear all,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">In my current research I need to pick a given luminosity and T_eff, with a given error bar, and get information of stellar models within this range of parameters. I wanted to find out the closest initial parameters (Mass,
 X, Y, Z, etc...) that produce a model with the nearest values to the L and T_eff I have defined.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I have tried to modify the solar_calibration folder from the test_suite but I am having several trouble, mainly with the age definition, and I'm not sure if this is the easiest route.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">My plan, since I don't know the age of the best model, would probably be trying a scan gird for the initial parameters (M, X, Y, ...) and, if L and T_eff were inside the defined range, I would calculate the chi^2 in each
 model and then pick the age for which it was lowest.</p>
<p style="margin-top:0;margin-bottom:0">Then I would use another algorithm like the simplex to fine-tune this result. </p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Does anyone has an advice on how to implement this or if this is the right approach?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thank you in advance,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Best regards,</p>
<p style="margin-top:0;margin-bottom:0">Gonçalo Andrade</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">p.s. I'm currently using version 8845 but I can upgrade if needed.</p>
</div>
</body>
</html>