-
Notifications
You must be signed in to change notification settings - Fork 47
Add primal_internal.h #194
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
Open
amontoison
wants to merge
6
commits into
libprima:main
Choose a base branch
from
amontoison:c_headers_internal
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5c4a023
Add primal_internal.h
amontoison c80fd21
Rename the header file
amontoison e91f2c5
Update prima_internal.h
amontoison 0a9fe95
Fix more errors
amontoison 8d1bf26
Update stress.c
amontoison 3505156
Update stress.c
amontoison File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| #ifndef PRIMA_INTERNAL_H | ||
| #define PRIMA_INTERNAL_H | ||
|
|
||
| #include "prima/prima.h" | ||
|
|
||
| unsigned int get_random_seed(void); | ||
|
|
||
| // Function to check whether the problem matches the algorithm | ||
| prima_rc_t prima_check_problem(const prima_problem_t problem, const prima_algorithm_t algorithm); | ||
|
|
||
| // Function to initialize the result | ||
| prima_rc_t prima_init_result(prima_result_t *const result, const prima_problem_t problem); | ||
|
|
||
| // Functions implemented in Fortran (*_c.f90) | ||
| int cobyla_c(const int m_nlcon, const prima_objcon_t calcfc, const void *data, const int n, double x[], double *const f, double *const cstrv, double nlconstr[], | ||
| const int m_ineq, const double Aineq[], const double bineq[], | ||
| const int m_eq, const double Aeq[], const double beq[], | ||
| const double xl[], const double xu[], | ||
| const double f0, const double nlconstr0[], | ||
| int *const nf, const double rhobeg, const double rhoend, const double ftarget, const int maxfun, const int iprint, const double ctol, | ||
| const prima_callback_t callback, int *const info); | ||
|
|
||
| int bobyqa_c(prima_obj_t calfun, const void *data, const int n, double x[], double *const f, const double xl[], const double xu[], | ||
| int *const nf, const double rhobeg, const double rhoend, const double ftarget, const int maxfun, const int npt, const int iprint, const prima_callback_t callback, int *const info); | ||
|
|
||
| int newuoa_c(prima_obj_t calfun, const void *data, const int n, double x[], double *const f, | ||
| int *const nf, const double rhobeg, const double rhoend, const double ftarget, const int maxfun, const int npt, const int iprint, const prima_callback_t callback, int *const info); | ||
|
|
||
| int uobyqa_c(prima_obj_t calfun, const void *data, const int n, double x[], double *const f, | ||
| int *const nf, const double rhobeg, const double rhoend, const double ftarget, const int maxfun, const int iprint, const prima_callback_t callback, int *const info); | ||
|
|
||
| int lincoa_c(prima_obj_t calfun, const void *data, const int n, double x[], double *const f, | ||
| double *const cstrv, const int m_ineq, const double Aineq[], const double bineq[], | ||
| const int m_eq, const double Aeq[], const double beq[], const double xl[], const double xu[], | ||
| int *const nf, const double rhobeg, const double rhoend, const double ftarget, const int maxfun, const int npt, const int iprint, const double ctol, | ||
| const prima_callback_t callback, int *const info); | ||
|
|
||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.