當我嘗試安裝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