alpaqa 0.0.1
Nonconvex constrained optimization
Classes | Public Member Functions | Public Attributes | Private Attributes | List of all members
CUTEstProblem Class Reference

#include <alpaqa/interop/cutest/CUTEstLoader.hpp>

Detailed Description

Wrapper for CUTEst problems loaded from an external shared library.

Warning
The lifetime of the wrapper should be at least as long as the lifetime of the CUTEstProblem::problem member. Do not make a copy of the problem that could outlive the wrapper.
Examples
CUTEst/Rosenbrock/main.cpp.

Definition at line 16 of file CUTEstLoader.hpp.

+ Collaboration diagram for CUTEstProblem:

Classes

struct  Report
 The report generated by CUTEst. More...
 
struct  Report.calls
 Function call counters. More...
 

Public Member Functions

 CUTEstProblem (const char *so_fname, const char *outsdif_fname)
 Load a CUTEst problem from the given shared library and OUTSDIF.d file. More...
 
 CUTEstProblem (const std::string &so_fname, const std::string &outsdif_fname)
 Load a CUTEst problem from the given shared library and OUTSDIF.d file. More...
 
 CUTEstProblem (CUTEstProblem &&)
 
CUTEstProblemoperator= (CUTEstProblem &&)
 
 ~CUTEstProblem ()
 
Report get_report () const
 

Public Attributes

alpaqa::Problem problem
 Problem statement (bounds, objective, constraints) More...
 
std::string name = "<UNKNOWN>"
 Problem name. More...
 
unsigned number_box_constraints = 0
 The number of box constraints on x. More...
 
alpaqa::vec x0
 Initial value of decision variables. More...
 
alpaqa::vec y0
 Initial value of Lagrange multipliers. More...
 

Private Attributes

std::unique_ptr< class CUTEstLoaderimplementation
 

Class Documentation

◆ CUTEstProblem::Report.calls

struct CUTEstProblem::Report.calls
+ Collaboration diagram for CUTEstProblem::Report.calls:
Class Members
unsigned objective Number of calls to the objective function.
unsigned objective_grad Number of calls to the objective gradient.
unsigned objective_hess Number of calls to the objective Hessian.
unsigned hessian_times_vector Number of Hessian times vector products.
unsigned constraints Number of calls to the constraint functions.
unsigned constraints_grad Number of calls to the constraint gradients.
unsigned constraints_hess Number of calls to the constraint Hessians.

Constructor & Destructor Documentation

◆ CUTEstProblem() [1/3]

CUTEstProblem ( const char *  so_fname,
const char *  outsdif_fname 
)

Load a CUTEst problem from the given shared library and OUTSDIF.d file.

Definition at line 328 of file CUTEstLoader.cpp.

+ Here is the call graph for this function:

◆ CUTEstProblem() [2/3]

CUTEstProblem ( const std::string &  so_fname,
const std::string &  outsdif_fname 
)

Load a CUTEst problem from the given shared library and OUTSDIF.d file.

Definition at line 362 of file CUTEstLoader.cpp.

◆ CUTEstProblem() [3/3]

CUTEstProblem ( CUTEstProblem &&  )
default

◆ ~CUTEstProblem()

~CUTEstProblem ( )
default

Member Function Documentation

◆ operator=()

CUTEstProblem & operator= ( CUTEstProblem &&  )
default

◆ get_report()

CUTEstProblem::Report get_report ( ) const

Definition at line 370 of file CUTEstLoader.cpp.

Member Data Documentation

◆ problem

alpaqa::Problem problem

Problem statement (bounds, objective, constraints)

Examples
CUTEst/Rosenbrock/main.cpp.

Definition at line 83 of file CUTEstLoader.hpp.

◆ name

std::string name = "<UNKNOWN>"

Problem name.

Definition at line 84 of file CUTEstLoader.hpp.

◆ number_box_constraints

unsigned number_box_constraints = 0

The number of box constraints on x.

Definition at line 85 of file CUTEstLoader.hpp.

◆ x0

Initial value of decision variables.

Examples
CUTEst/Rosenbrock/main.cpp.

Definition at line 86 of file CUTEstLoader.hpp.

◆ y0

Initial value of Lagrange multipliers.

Examples
CUTEst/Rosenbrock/main.cpp.

Definition at line 87 of file CUTEstLoader.hpp.

◆ implementation

std::unique_ptr<class CUTEstLoader> implementation
private

Definition at line 90 of file CUTEstLoader.hpp.


The documentation for this class was generated from the following files: