当我尝试安装R软件包nlopt-2.4.2.tar.gz from http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz,使用sudo R CMD INSTALL nlopt-2.4.2.tar.gz, 我收到以下错误: 错误untar2(tar文件,文件,目录,exdir,restore_times): 不支持的条目类型'
我正在使用nlopt的C++接口来解决非线性优化问题。 nlopt::opt opt;
opt.set_maxeval(10);
opt.set_max_objective(foo);
double result;
std::vector<double> params(10,0);
opt.optimize(params, result);
// later on in the c