This example shows how to load and solve CUTEst problems using alpaqa.
#include <iostream>
const char *so_fname = "CUTEst/ROSENBR/libcutest-problem-ROSENBR.so";
const char *outsdif_fname = "CUTEst/ROSENBR/OUTSDIF.d";
};
std::cout <<
"status: " <<
stats.status << std::endl;
std::cout <<
"x = " <<
x.transpose() << std::endl;
std::cout <<
"y = " <<
y.transpose() << std::endl;
std::cout <<
"g = " <<
g.transpose() << std::endl;
std::cout <<
"f = " <<
p.f(
x) << std::endl;
std::cout <<
"inner: " <<
stats.inner.iterations << std::endl;
std::cout <<
"outer: " <<
stats.outer_iterations << std::endl;
}
Wrapper for CUTEst problems loaded from an external shared library.
alpaqa::vec x0
Initial value of decision variables.
alpaqa::vec y0
Initial value of Lagrange multipliers.
alpaqa::Problem problem
Problem statement (bounds, objective, constraints)
Augmented Lagrangian Method solver.
realvec vec
Default type for vectors.
Parameters for the Augmented Lagrangian solver.
Parameters for the LBFGS and SpecializedLBFGS classes.
Tuning parameters for the PANOC algorithm.
Problem description for minimization problems.