some bugfixes
This commit is contained in:
parent
efafbb6f05
commit
c6b4f255d9
3 changed files with 96 additions and 8 deletions
|
|
@ -46,7 +46,7 @@ class PyFitness : public boost::python::object
|
|||
static double tol() { return 1e-6; }
|
||||
static bool maximizing(int which) { return objective_info[which] > 0; }
|
||||
|
||||
static void setObjectivesSize(int sz) { objective_info.resize(sz); }
|
||||
static void setObjectivesSize(int sz) { objective_info.resize(sz, 0); }
|
||||
static void setObjectivesValue(unsigned which, int value)
|
||||
{
|
||||
if (which >= objective_info.size())
|
||||
|
|
|
|||
Reference in a new issue