File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ namespace libcmaes
119
119
void set_algo (const int &algo)
120
120
{
121
121
this ->_algo = algo;
122
- if (this ->_tpa != 0
122
+ /* if (this->_tpa != 0
123
123
&& (this->_algo == 6 // sepCMAES
124
124
|| this->_algo == 7 //sepIPOP_CMAES
125
125
|| this->_algo == 8 //sepBIPOP_CMAES
@@ -129,7 +129,7 @@ namespace libcmaes
129
129
|| this->_algo == 12 //VD_CMAES
130
130
|| this->_algo == 13 //VD_IPOP_CMAES
131
131
|| this->_algo == 14)) //VD_BIPOP_CMAES
132
- set_tpa (2 );
132
+ set_tpa(2); */ // XXX: deactivated until flaw is fixed
133
133
}
134
134
135
135
/* *
@@ -157,8 +157,8 @@ namespace libcmaes
157
157
void set_gradient (const bool &gradient)
158
158
{
159
159
this ->_with_gradient = gradient;
160
- if (this ->_tpa != 0 )
161
- set_tpa (2 ); // TPA default when gradient is activated.
160
+ /* if (this->_tpa != 0)
161
+ set_tpa(2);*/ // TPA default when gradient is activated.
162
162
}
163
163
164
164
/* *
Original file line number Diff line number Diff line change @@ -423,7 +423,8 @@ namespace libcmaes
423
423
void set_gradient (const bool &gradient)
424
424
{
425
425
_with_gradient = gradient;
426
- set_tpa (true ); // TPA default when gradient is activated.
426
+ /* if (this->_tpa != 0)
427
+ set_tpa(2); */ // TPA default when gradient is activated. XXX: deactivated until flaw is fixed.
427
428
}
428
429
429
430
/* *
You can’t perform that action at this time.
0 commit comments