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
Copy file name to clipboardExpand all lines: ContaminationEstimator.cpp
+44-16Lines changed: 44 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,12 @@ int ContaminationEstimator::OptimizeLLK(const std::string &OutputPrefix) {
31
31
if (isPCFixed) {
32
32
std::cout << "Estimation from OptimizeHomoFixedPC:" << std::endl;
33
33
fout<< "Estimation from OptimizeHomoFixedPC:" << std::endl;
34
-
for (auto alphaTrial: candidateAlphaSet) {
35
-
alpha = alphaTrial;//all the initializations in this function are for AmoebaMinimizer simplex
36
-
if(OptimizeHomoFixedPC(myMinimizer)) break;
37
-
}
34
+
// for (auto alphaTrial: candidateAlphaSet) {
35
+
// alpha = alphaTrial;//all the initializations in this function are for AmoebaMinimizer simplex
36
+
// if(OptimizeHomoFixedPC(myMinimizer)) break;
37
+
// }
38
+
alpha = fabs(static_cast <double> (rand()) / static_cast <double> (RAND_MAX));//all the initializations in this function are for AmoebaMinimizer simplex
39
+
OptimizeHomoFixedPC(myMinimizer);
38
40
} elseif (isAlphaFixed) {
39
41
std::cout << "Estimation from OptimizeHomoFixedAlpha:" << std::endl;
40
42
fout<< "Estimation from OptimizeHomoFixedAlpha:" << std::endl;
@@ -43,25 +45,37 @@ int ContaminationEstimator::OptimizeLLK(const std::string &OutputPrefix) {
0 commit comments