chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added nlopt_force_stop termination
[nlopt.git]
/
luksan
/
plis.c
diff --git
a/luksan/plis.c
b/luksan/plis.c
index e9ef510b08dc2dd942f3fffab61ae9faad372c0f..d0e4adfc7cdf87e4920276295a996915bd73bc82 100644
(file)
--- a/
luksan/plis.c
+++ b/
luksan/plis.c
@@
-509,6
+509,7
@@
nlopt_result luksan_plis(int n, nlopt_func f, void *f_data,
case 4: return NLOPT_SUCCESS; /* gradient tolerance reached */
case 6: return NLOPT_SUCCESS;
case 12: case 13: return NLOPT_MAXEVAL_REACHED;
+ case -999: return NLOPT_FORCE_STOP;
default: return NLOPT_FAILURE;
}
}