Damien Fay
unread,Apr 26, 2012, 7:43:33 AM4/26/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Eureqa Group
I was having a look at the matlab API and there is a possible bug; in
the gateway file eureqa_select.cpp the following code:
for (i=0;i<nbest;i++)
{
eval[i] = best_solutions[i].fitness_;
mexPrintf("%f \n",eval[i]);
}
std::string eureqa_output =
best_solutions[maxloc(eval,nbest)].text_;
if (verbose)
{
mexPrintf("the selected solution is: ");
mexPrintf("%s\n",eureqa_output.c_str());
myfile.open ("output.txt");
myfile << best_solutions.to_string();
myfile.close();
selects the function with the highest fitness when in fact it should
choose the one with the lowest (really the user should make the choice
based on a complexity fitness trade-off but lets ignore that).
Please let me know if I've made a mistake, thanks, Damien.