26 #ifndef CASADI_FAST_NEWTON_HPP
27 #define CASADI_FAST_NEWTON_HPP
29 #include "casadi/core/rootfinder_impl.hpp"
30 #include <casadi/solvers/casadi_rootfinder_fast_newton_export.h>
72 const char*
plugin_name()
const override {
return "fast_newton";}
75 std::string
class_name()
const override {
return "FastNewton";}
89 Dict get_stats(
void* mem)
const override;
92 void init(
const Dict& opts)
override;
98 int init_mem(
void* mem)
const override;
104 void set_work(
void* mem,
const double**& arg,
double**& res,
105 casadi_int*& iw,
double*& w)
const override;
108 int solve(
void* mem)
const override;
145 std::vector<casadi_int>
pc_;
Helper class for C code generation.
Helper class for Serialization.
'fast_newton' plugin for Rootfinder
static Rootfinder * creator(const std::string &name, const Function &f)
Create a new Rootfinder.
Sparsity sp_v_
Data for qr.
const char * plugin_name() const override
static const std::string meta_doc
A documentation string.
static ProtoFunction * deserialize(DeserializingStream &s)
Deserialize into MX.
Function jac_g_x_
Reference to jacobian function.
double abstol_
Absolute tolerance that should be met on residual.
static const Options options_
Options.
std::string class_name() const override
Readable name of the internal class.
casadi_int max_iter_
Maximum number of Newton iterations.
void free_mem(void *mem) const override
Free memory block.
void * alloc_mem() const override
Create memory block.
double abstolStep_
Absolute tolerance that should be met on step.
const Options & get_options() const override
Options.
std::vector< casadi_int > pc_
std::vector< casadi_int > prinv_
Base class for FunctionInternal and LinsolInternal.
Helper class for Serialization.
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.
casadi_newton_mem< double > M
Options metadata for a class.