26 #ifndef CASADI_ROOTFINDER_HPP
27 #define CASADI_ROOTFINDER_HPP
29 #include "function.hpp"
74 CASADI_EXPORT Function
rootfinder(
const std::string& name,
const std::string& solver,
76 CASADI_EXPORT Function
rootfinder(
const std::string& name,
const std::string& solver,
78 CASADI_EXPORT Function
rootfinder(
const std::string& name,
const std::string& solver,
79 const Function& f,
const Dict& opts=
Dict());
134 CASADI_EXPORT std::string
doc_rootfinder(
const std::string& name);
RfpOut
Inputs of the symbolic representation of the rootfinding problem.
RfpIn
Inputs of the symbolic representation of the rootfinding problem.
std::string rootfinder_option_type(const std::string &name, const std::string &op)
Get type info for a particular option.
const std::vector< std::string > RFP_OUTPUTS
Shortnames for DAE symbolic representation outputs.
const std::vector< std::string > RFP_INPUTS
Shortnames for DAE symbolic representation inputs.
std::vector< std::string > rootfinder_in()
Get rootfinder input scheme.
casadi_int rootfinder_n_out()
Number of rootfinder outputs.
casadi_int rootfinder_n_in()
Number of rootfinder inputs.
void load_rootfinder(const std::string &name)
Explicitly load a plugin dynamically.
RootfinderInput
Input arguments of a rootfinder.
std::string rootfinder_option_info(const std::string &name, const std::string &op)
Get documentation for a particular option.
std::vector< std::string > rootfinder_options(const std::string &name)
Get all options for a plugin.
std::string doc_rootfinder(const std::string &name)
Get the documentation string for a plugin.
bool has_rootfinder(const std::string &name)
Check if a particular plugin is available.
std::vector< std::string > rootfinder_out()
Get rootfinder output scheme.
Function rootfinder(const std::string &name, const std::string &solver, const SXDict &rfp, const Dict &opts)
RootfinderOutput
Output arguments of a rootfinder.
@ ROOTFINDER_NUM_IN
Number of input arguments of a rootfinder.
@ ROOTFINDER_P
Parameters.
@ ROOTFINDER_X0
Initial guess for the solution.
@ ROOTFINDER_X
Solution to the system of equations.
@ ROOTFINDER_NUM_OUT
Number of output arguments of a rootfinder.
std::map< std::string, MX > MXDict
std::map< std::string, SX > SXDict
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.