alpaqa 1.1.0a1
Nonconvex constrained optimization
Loading...
Searching...
No Matches
alpaqa::cutest Namespace Reference

Classes

struct  Function
 Reference to CUTEst function. More...
struct  function_call_error
struct  Name
 Compile-time string for CUTEst function names. More...

Typedefs

using csetup = Function<"cutest_cint_csetup_", void(integer *status, const integer *funit, const integer *iout, const integer *io_buffer, integer *n, integer *m, doublereal *x, doublereal *bl, doublereal *bu, doublereal *v, doublereal *cl, doublereal *cu, logical *equatn, logical *linear, const integer *e_order, const integer *l_order, const integer *v_order)>
using cterminate = Function<"cutest_cterminate_", void(integer *status)>
using cdimen = Function<"cutest_cdimen_", void(integer *status, const integer *funit, integer *n, integer *m)>
using cdimsj = Function<"cutest_cdimsj_", void(integer *status, integer *nnzj)>
using cdimsh = Function<"cutest_cdimsh_", void(integer *status, integer *nnzh)>
using probname = Function<"cutest_probname_", void(integer *status, char *pname)>
using creport = Function<"cutest_creport_", void(integer *status, doublereal *calls, doublereal *time)>
using ureport = Function<"cutest_ureport_", void(integer *status, doublereal *calls, doublereal *time)>
using cfn = Function<"cutest_cfn_", void(integer *status, const integer *n, const integer *m, const doublereal *x, doublereal *f, doublereal *c)>
using cofg = Function<"cutest_cint_cofg_", void(integer *status, const integer *n, const doublereal *x, doublereal *f, doublereal *g, const logical *grad)>
using ccfg = Function<"cutest_cint_ccfg_", void(integer *status, const integer *n, const integer *m, const doublereal *x, doublereal *c, const logical *jtrans, const integer *lcjac1, const integer *lcjac2, doublereal *cjac, const logical *grad)>
using clfg = Function<"cutest_cint_clfg_", void(integer *status, const integer *n, const integer *m, const doublereal *x, const doublereal *y, doublereal *f, doublereal *g, const logical *grad)>
using ccfsg = Function<"cutest_cint_ccfsg_", void(integer *status, const integer *n, const integer *m, const doublereal *x, doublereal *c, integer *nnzj, const integer *lcjac, doublereal *cjac, integer *indvar, integer *indfun, const logical *grad)>
using ccifg = Function<"cutest_cint_ccifg_", void(integer *status, const integer *n, const integer *icon, const doublereal *x, doublereal *ci, doublereal *gci, const logical *grad)>
using cdh = Function<"cutest_cdh_", void(integer *status, const integer *n, const integer *m, const doublereal *x, const doublereal *y, const integer *lh1, doublereal *h)>
using cshp = Function<"cutest_cshp_", void(integer *status, const integer *n, integer *nnzh, const integer *lh, integer *irnh, integer *icnh)>
using csh = Function<"cutest_csh_", void(integer *status, const integer *n, const integer *m, const doublereal *x, const doublereal *y, integer *nnzh, const integer *lh, doublereal *h, integer *irnh, integer *icnh)>
using cigr = Function<"cutest_cigr_", void(integer *status, const integer *n, const integer *iprob, const doublereal *x, doublereal *g)>
using chprod = Function<"cutest_chprod_", void(integer *status, const integer *n, const integer *m, const logical *goth, const doublereal *x, const doublereal *y, doublereal *p, doublereal *q)>
using cjprod = Function<"cutest_cjprod_", void(integer *status, const integer *n, const integer *m, const logical *gotj, const logical *jtrans,const doublereal *x, const doublereal *p, const integer *lp, doublereal *r, const integer *lr)>
using csjp = Function<"cutest_csjp_", void(integer *status, integer *nnzj, const integer *lj, integer *J_var, integer *J_con)>
using fortran_open = Function<"fortran_open_", void(const integer *funit, const char *fname, integer *ierr)>
using fortran_close = Function<"fortran_close_", void(const integer *funit, integer *ierr)>
using integer = int
using doublereal = double
using logical = int

Enumerations

enum class  Status { Success = 0 , AllocErr = 1 , BoundErr = 2 , EvalErr = 3 }

Functions

constexpr const char * enum_name (Status s)

Variables

constexpr logical True = 1
constexpr logical False = 0
constexpr doublereal inf = 1e20
constexpr size_t fstring_len = 10

Typedef Documentation

◆ csetup

using csetup = Function<"cutest_cint_csetup_", void(integer *status, const integer *funit, const integer *iout, const integer *io_buffer, integer *n, integer *m, doublereal *x, doublereal *bl, doublereal *bu, doublereal *v, doublereal *cl, doublereal *cu, logical *equatn, logical *linear, const integer *e_order, const integer *l_order, const integer *v_order)>

Definition at line 46 of file cutest-functions.hpp.

◆ cterminate

using cterminate = Function<"cutest_cterminate_", void(integer *status)>

Definition at line 47 of file cutest-functions.hpp.

◆ cdimen

using cdimen = Function<"cutest_cdimen_", void(integer *status, const integer *funit, integer *n, integer *m)>

Definition at line 49 of file cutest-functions.hpp.

◆ cdimsj

using cdimsj = Function<"cutest_cdimsj_", void(integer *status, integer *nnzj)>

Definition at line 50 of file cutest-functions.hpp.

◆ cdimsh

using cdimsh = Function<"cutest_cdimsh_", void(integer *status, integer *nnzh)>

Definition at line 51 of file cutest-functions.hpp.

◆ probname

using probname = Function<"cutest_probname_", void(integer *status, char *pname)>

Definition at line 53 of file cutest-functions.hpp.

◆ creport

using creport = Function<"cutest_creport_", void(integer *status, doublereal *calls, doublereal *time)>

Definition at line 54 of file cutest-functions.hpp.

◆ ureport

using ureport = Function<"cutest_ureport_", void(integer *status, doublereal *calls, doublereal *time)>

Definition at line 56 of file cutest-functions.hpp.

◆ cfn

using cfn = Function<"cutest_cfn_", void(integer *status, const integer *n, const integer *m, const doublereal *x, doublereal *f, doublereal *c)>

Definition at line 58 of file cutest-functions.hpp.

◆ cofg

using cofg = Function<"cutest_cint_cofg_", void(integer *status, const integer *n, const doublereal *x, doublereal *f, doublereal *g, const logical *grad)>

Definition at line 59 of file cutest-functions.hpp.

◆ ccfg

using ccfg = Function<"cutest_cint_ccfg_", void(integer *status, const integer *n, const integer *m, const doublereal *x, doublereal *c, const logical *jtrans, const integer *lcjac1, const integer *lcjac2, doublereal *cjac, const logical *grad)>

Definition at line 60 of file cutest-functions.hpp.

◆ clfg

using clfg = Function<"cutest_cint_clfg_", void(integer *status, const integer *n, const integer *m, const doublereal *x, const doublereal *y, doublereal *f, doublereal *g, const logical *grad)>

Definition at line 61 of file cutest-functions.hpp.

◆ ccfsg

using ccfsg = Function<"cutest_cint_ccfsg_", void(integer *status, const integer *n, const integer *m, const doublereal *x, doublereal *c, integer *nnzj, const integer *lcjac, doublereal *cjac, integer *indvar, integer *indfun, const logical *grad)>

Definition at line 62 of file cutest-functions.hpp.

◆ ccifg

using ccifg = Function<"cutest_cint_ccifg_", void(integer *status, const integer *n, const integer *icon, const doublereal *x, doublereal *ci, doublereal *gci, const logical *grad)>

Definition at line 63 of file cutest-functions.hpp.

◆ cdh

using cdh = Function<"cutest_cdh_", void(integer *status, const integer *n, const integer *m, const doublereal *x, const doublereal *y, const integer *lh1, doublereal *h)>

Definition at line 64 of file cutest-functions.hpp.

◆ cshp

using cshp = Function<"cutest_cshp_", void(integer *status, const integer *n, integer *nnzh, const integer *lh, integer *irnh, integer *icnh)>

Definition at line 65 of file cutest-functions.hpp.

◆ csh

using csh = Function<"cutest_csh_", void(integer *status, const integer *n, const integer *m, const doublereal *x, const doublereal *y, integer *nnzh, const integer *lh, doublereal *h, integer *irnh, integer *icnh)>

Definition at line 66 of file cutest-functions.hpp.

◆ cigr

using cigr = Function<"cutest_cigr_", void(integer *status, const integer *n, const integer *iprob, const doublereal *x, doublereal *g)>

Definition at line 67 of file cutest-functions.hpp.

◆ chprod

using chprod = Function<"cutest_chprod_", void(integer *status, const integer *n, const integer *m, const logical *goth, const doublereal *x, const doublereal *y, doublereal *p, doublereal *q)>

Definition at line 68 of file cutest-functions.hpp.

◆ cjprod

using cjprod = Function<"cutest_cjprod_", void(integer *status, const integer *n, const integer *m, const logical *gotj, const logical *jtrans,const doublereal *x, const doublereal *p, const integer *lp, doublereal *r, const integer *lr)>

Definition at line 69 of file cutest-functions.hpp.

◆ csjp

using csjp = Function<"cutest_csjp_", void(integer *status, integer *nnzj, const integer *lj, integer *J_var, integer *J_con)>

Definition at line 70 of file cutest-functions.hpp.

◆ fortran_open

using fortran_open = Function<"fortran_open_", void(const integer *funit, const char *fname, integer *ierr)>

Definition at line 72 of file cutest-functions.hpp.

◆ fortran_close

using fortran_close = Function<"fortran_close_", void(const integer *funit, integer *ierr)>

Definition at line 73 of file cutest-functions.hpp.

◆ integer

using integer = int

Definition at line 25 of file cutest-types.hpp.

◆ doublereal

using doublereal = double

Definition at line 26 of file cutest-types.hpp.

◆ logical

using logical = int

Definition at line 27 of file cutest-types.hpp.

Enumeration Type Documentation

◆ Status

enum class Status
strong
Enumerator
Success 

Successful call.

AllocErr 

Array allocation/deallocation error.

BoundErr 

Array bound error.

EvalErr 

Evaluation error.

Definition at line 7 of file cutest-errors.hpp.

Function Documentation

◆ enum_name()

const char * enum_name ( Status s)
inlineconstexpr

Definition at line 14 of file cutest-errors.hpp.

Here is the caller graph for this function:

Variable Documentation

◆ True

logical True = 1
constexpr

Definition at line 28 of file cutest-types.hpp.

◆ False

logical False = 0
constexpr

Definition at line 29 of file cutest-types.hpp.

◆ inf

doublereal inf = 1e20
constexpr

Definition at line 30 of file cutest-types.hpp.

◆ fstring_len

size_t fstring_len = 10
constexpr

Definition at line 31 of file cutest-types.hpp.