You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I rewrite the sample code shown as below in the debug mode, but it cause a runtime library fail which is not appeared in release mode. I just change the sigma into a vector and it can not run in debug mode.
int main(int argc, char *argv[]) { int dim = 10; std::vector<double> x0(dim,10.0); std::vector<double> sigma(dim, 0.1); CMAParameters<> cmaparams = CMAParameters<>(x0, sigma); CMASolutions cmasols = cmaes<>(fsphere,cmaparams); return cmasols.run_status(); }
Can anyone tell me what's the problem is?
The error message is shown as below:
Debug Assertion Failed!
Program: C:\WINDOWS\SYSTEM32\MSVCP120D.dll
File:C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\vector
Line: 72
Expression:vector iterator not dereferencable
The text was updated successfully, but these errors were encountered:
Hi,
I rewrite the sample code shown as below in the debug mode, but it cause a runtime library fail which is not appeared in release mode. I just change the sigma into a vector and it can not run in debug mode.
int main(int argc, char *argv[]) { int dim = 10; std::vector<double> x0(dim,10.0); std::vector<double> sigma(dim, 0.1); CMAParameters<> cmaparams = CMAParameters<>(x0, sigma); CMASolutions cmasols = cmaes<>(fsphere,cmaparams); return cmasols.run_status(); }
Can anyone tell me what's the problem is?
The error message is shown as below:
The text was updated successfully, but these errors were encountered: