From 5fef213c4d27917f1511f8cfd42c351be26a9f7f Mon Sep 17 00:00:00 2001 From: Ella Wu <602725+nwu63@users.noreply.github.com> Date: Fri, 22 Dec 2023 09:51:37 -0500 Subject: [PATCH] NSGA2 patch (#365) * add Phil's fix * version bump --- pyoptsparse/__init__.py | 2 +- pyoptsparse/pyNSGA2/source/nsga2.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyoptsparse/__init__.py b/pyoptsparse/__init__.py index 1ea04cc7..aa852adb 100644 --- a/pyoptsparse/__init__.py +++ b/pyoptsparse/__init__.py @@ -1,4 +1,4 @@ -__version__ = "2.10.1" +__version__ = "2.10.2" from .pyOpt_history import History from .pyOpt_variable import Variable diff --git a/pyoptsparse/pyNSGA2/source/nsga2.h b/pyoptsparse/pyNSGA2/source/nsga2.h index 3ed100b9..051382fa 100644 --- a/pyoptsparse/pyNSGA2/source/nsga2.h +++ b/pyoptsparse/pyNSGA2/source/nsga2.h @@ -127,7 +127,7 @@ void mutation_ind (individual *ind, Global global, int *nrealmut, int *nbinmut); void bin_mutate_ind (individual *ind, Global global, int *nbinmut); void real_mutate_ind (individual *ind, Global global, int *nrealmut); -//void nsga2func (int nreal, int nbin, int nobj, int ncon, double *xreal, double *xbin, int **gene, double *obj, double *constr); +void nsga2func (int nreal, int nbin, int nobj, int ncon, double *xreal, double *xbin, int **gene, double *obj, double *constr); void assign_rank_and_crowding_distance (population *new_pop, Global global);