Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nlopt_algorithm_name #558

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading