Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法强制nlopt_optimize进入整数步?我试过了
nlopt_optimize
double* step = new double(dbSize); for (int i = 0; i<dbSize; i++){ step[i] = 1; } nlopt_set_initial_step(optimizer, step);
但这似乎没有多大帮助。
使用的算法是 COBYLA