Skip to content

Commit

Permalink
Fix nlopt_algorithm_name (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
NogginBops authored Jul 8, 2024
1 parent 7a7587e commit 95172af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/api/general.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ static const char nlopt_algorithm_names[NLOPT_NUM_ALGORITHMS][256] = {
#ifdef NLOPT_CXX
"StoGO (global, derivative-based)",
"StoGO with randomized search (global, derivative-based)",
"AGS (global, no-derivative)"
#else
"StoGO (NOT COMPILED)",
"StoGO randomized (NOT COMPILED)",
"AGS (NOT COMPILED)"
#endif
"original L-BFGS code by Nocedal et al. (NOT COMPILED)",
"Limited-memory BFGS (L-BFGS) (local, derivative-based)",
Expand Down Expand Up @@ -85,6 +83,11 @@ static const char nlopt_algorithm_names[NLOPT_NUM_ALGORITHMS][256] = {
"Sequential Quadratic Programming (SQP) (local, derivative)",
"CCSA (Conservative Convex Separable Approximations) with simple quadratic approximations (local, derivative)",
"ESCH evolutionary strategy",
#ifdef NLOPT_CXX
"AGS (global, no-derivative)",
#else
"AGS (NOT COMPILED)",
#endif
};

const char *NLOPT_STDCALL nlopt_algorithm_name(nlopt_algorithm a)
Expand Down

0 comments on commit 95172af

Please sign in to comment.