Skip to content

Commit 5fef213

Browse files
authored
NSGA2 patch (#365)
* add Phil's fix * version bump
1 parent c233e8f commit 5fef213

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyoptsparse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.10.1"
1+
__version__ = "2.10.2"
22

33
from .pyOpt_history import History
44
from .pyOpt_variable import Variable

pyoptsparse/pyNSGA2/source/nsga2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void mutation_ind (individual *ind, Global global, int *nrealmut, int *nbinmut);
127127
void bin_mutate_ind (individual *ind, Global global, int *nbinmut);
128128
void real_mutate_ind (individual *ind, Global global, int *nrealmut);
129129

130-
//void nsga2func (int nreal, int nbin, int nobj, int ncon, double *xreal, double *xbin, int **gene, double *obj, double *constr);
130+
void nsga2func (int nreal, int nbin, int nobj, int ncon, double *xreal, double *xbin, int **gene, double *obj, double *constr);
131131

132132
void assign_rank_and_crowding_distance (population *new_pop, Global global);
133133

0 commit comments

Comments
 (0)