Skip to content

Commit 95172af

Browse files
authored
Fix nlopt_algorithm_name (#558)
1 parent 7a7587e commit 95172af

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/api/general.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ static const char nlopt_algorithm_names[NLOPT_NUM_ALGORITHMS][256] = {
4646
#ifdef NLOPT_CXX
4747
"StoGO (global, derivative-based)",
4848
"StoGO with randomized search (global, derivative-based)",
49-
"AGS (global, no-derivative)"
5049
#else
5150
"StoGO (NOT COMPILED)",
5251
"StoGO randomized (NOT COMPILED)",
53-
"AGS (NOT COMPILED)"
5452
#endif
5553
"original L-BFGS code by Nocedal et al. (NOT COMPILED)",
5654
"Limited-memory BFGS (L-BFGS) (local, derivative-based)",
@@ -85,6 +83,11 @@ static const char nlopt_algorithm_names[NLOPT_NUM_ALGORITHMS][256] = {
8583
"Sequential Quadratic Programming (SQP) (local, derivative)",
8684
"CCSA (Conservative Convex Separable Approximations) with simple quadratic approximations (local, derivative)",
8785
"ESCH evolutionary strategy",
86+
#ifdef NLOPT_CXX
87+
"AGS (global, no-derivative)",
88+
#else
89+
"AGS (NOT COMPILED)",
90+
#endif
8891
};
8992

9093
const char *NLOPT_STDCALL nlopt_algorithm_name(nlopt_algorithm a)

0 commit comments

Comments
 (0)