R port of the Scilab optimbase module