Hello Andrew,
>> Probably it would be reasonable to add two functions atoi and atod to
>> convert symbolic values to numeric ones.
The following patch in glpmpl03.c might be sufficient:
case O_CVTNUM:
/* conversion to numeric */
{ SYMBOL *sym;
sym = eval_symbolic(mpl, code->arg.arg.x);
if (sym->str != NULL)
{
// error(mpl, "cannot convert %s to floating-point numbe"
// "r", format_symbol(mpl, sym));
value = atof(sym->str);
}
else
{
value = sym->num;
}
delete_symbol(mpl, sym);
}
break;
Best regards
Xypron
--
View this message in context:
http://www.nabble.com/Time-conversion-functions-tp20549985p20618114.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk