-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
240430.174247.HKT try
prima_internal.h
- Loading branch information
1 parent
daed3f3
commit a1b7f19
Showing
3 changed files
with
64 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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 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 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
a1b7f19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@check-spelling-bot Report
🔴 Please review
See the 📜action log or 📝 job summary for details.
Unrecognized words (1)
timeinfo
Some files were automatically ignored 🙈
These sample patterns would exclude them:
You should consider adding them to:
File matching is via Perl regular expressions.
To check these files, more of their words need to be in the dictionary than not. You can use
patterns.txt
to exclude portions, add items to the dictionary (e.g. by adding them toallow.txt
), or fix typos.To accept these unrecognized words as correct and update file exclusions, you could run the following commands
... in a clone of the [email protected]:libprima/prima.git repository
on the
c_headers_internal
branch (ℹ️ how do I use this?):Warnings (1)
See the 📜action log or 📝 job summary for details.
See ℹ️ Event descriptions for more information.
If the flagged items are 🤯 false positives
If items relate to a ...
binary file (or some other file you wouldn't want to check at all).
Please add a file path to the
excludes.txt
file matching the containing file.File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.
^
refers to the file's path from the root of the repository, so^README\.md$
would exclude README.md (on whichever branch you're using).well-formed pattern.
If you can write a pattern that would match it,
try adding it to the
patterns.txt
file.Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.
Note that patterns can't match multiline strings.