cvodes_interface_meta.cpp
1 /*
2  * This file is part of CasADi.
3  *
4  * CasADi -- A symbolic framework for dynamic optimization.
5  * Copyright (C) 2010-2023 Joel Andersson, Joris Gillis, Moritz Diehl,
6  * KU Leuven. All rights reserved.
7  * Copyright (C) 2011-2014 Greg Horn
8  *
9  * CasADi is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 3 of the License, or (at your option) any later version.
13  *
14  * CasADi is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with CasADi; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *
23  */
24 
25 
26  #include "cvodes_interface.hpp"
27  #include <string>
28 
29  const std::string casadi::CvodesInterface::meta_doc=
30  "\n"
31 "\n"
32 "\n"
33 "Interface to CVodes from the Sundials suite.\n"
34 "\n"
35 "A call to evaluate will integrate to the end.\n"
36 "\n"
37 "You can retrieve the entire state trajectory as follows, after the \n"
38 "evaluate call: Call reset. Then call integrate(t_i) and getOuput for a\n"
39 " series of times t_i.\n"
40 "\n"
41 "Extra doc: https://github.com/casadi/casadi/wiki/L_228 \n"
42 "\n"
43 "\n"
44 ">List of available options\n"
45 "\n"
46 "+-----------------------------+-----------+--------------------------------+\n"
47 "| Id | Type | Description |\n"
48 "+=============================+===========+================================+\n"
49 "| abstol | OT_DOUBLE | Absolute tolerence for the IVP |\n"
50 "| | | solution |\n"
51 "+-----------------------------+-----------+--------------------------------+\n"
52 "| always_recalculate_jacobian | OT_BOOL | Recalculate Jacobian before |\n"
53 "| | | factorizations, even if |\n"
54 "| | | Jacobian is current [default: |\n"
55 "| | | true] |\n"
56 "+-----------------------------+-----------+--------------------------------+\n"
57 "| disable_internal_warnings | OT_BOOL | Disable SUNDIALS internal |\n"
58 "| | | warning messages |\n"
59 "+-----------------------------+-----------+--------------------------------+\n"
60 "| fsens_all_at_once | OT_BOOL | Calculate all right hand sides |\n"
61 "| | | of the sensitivity equations |\n"
62 "| | | at once |\n"
63 "+-----------------------------+-----------+--------------------------------+\n"
64 "| fsens_err_con | OT_BOOL | include the forward |\n"
65 "| | | sensitivities in all error |\n"
66 "| | | controls |\n"
67 "+-----------------------------+-----------+--------------------------------+\n"
68 "| interpolation_type | OT_STRING | Type of interpolation for the |\n"
69 "| | | adjoint sensitivities |\n"
70 "+-----------------------------+-----------+--------------------------------+\n"
71 "| linear_multistep_method | OT_STRING | Integrator scheme: BDF|adams |\n"
72 "+-----------------------------+-----------+--------------------------------+\n"
73 "| linear_solver | OT_STRING | A custom linear solver creator |\n"
74 "| | | function [default: qr] |\n"
75 "+-----------------------------+-----------+--------------------------------+\n"
76 "| linear_solver_options | OT_DICT | Options to be passed to the |\n"
77 "| | | linear solver |\n"
78 "+-----------------------------+-----------+--------------------------------+\n"
79 "| max_krylov | OT_INT | Maximum Krylov subspace size |\n"
80 "+-----------------------------+-----------+--------------------------------+\n"
81 "| max_multistep_order | OT_INT | Maximum order for the |\n"
82 "| | | (variable-order) multistep |\n"
83 "| | | method |\n"
84 "+-----------------------------+-----------+--------------------------------+\n"
85 "| max_num_steps | OT_INT | Maximum number of integrator |\n"
86 "| | | steps |\n"
87 "+-----------------------------+-----------+--------------------------------+\n"
88 "| max_order | OT_DOUBLE | Maximum order |\n"
89 "+-----------------------------+-----------+--------------------------------+\n"
90 "| max_step_size | OT_DOUBLE | Max step size [default: 0/inf] |\n"
91 "+-----------------------------+-----------+--------------------------------+\n"
92 "| min_step_size | OT_DOUBLE | Min step size [default: 0/0.0] |\n"
93 "+-----------------------------+-----------+--------------------------------+\n"
94 "| newton_scheme | OT_STRING | Linear solver scheme in the |\n"
95 "| | | Newton method: |\n"
96 "| | | DIRECT|gmres|bcgstab|tfqmr |\n"
97 "+-----------------------------+-----------+--------------------------------+\n"
98 "| nonlin_conv_coeff | OT_DOUBLE | Coefficient in the nonlinear |\n"
99 "| | | convergence test |\n"
100 "+-----------------------------+-----------+--------------------------------+\n"
101 "| nonlinear_solver_iteration | OT_STRING | Nonlinear solver type: |\n"
102 "| | | NEWTON|functional |\n"
103 "+-----------------------------+-----------+--------------------------------+\n"
104 "| quad_err_con | OT_BOOL | Should the quadratures affect |\n"
105 "| | | the step size control |\n"
106 "+-----------------------------+-----------+--------------------------------+\n"
107 "| reltol | OT_DOUBLE | Relative tolerence for the IVP |\n"
108 "| | | solution |\n"
109 "+-----------------------------+-----------+--------------------------------+\n"
110 "| scale_abstol | OT_BOOL | Scale absolute tolerance by |\n"
111 "| | | nominal value |\n"
112 "+-----------------------------+-----------+--------------------------------+\n"
113 "| second_order_correction | OT_BOOL | Second order correction in the |\n"
114 "| | | augmented system Jacobian |\n"
115 "| | | [true] |\n"
116 "+-----------------------------+-----------+--------------------------------+\n"
117 "| sensitivity_method | OT_STRING | Sensitivity method: |\n"
118 "| | | SIMULTANEOUS|staggered |\n"
119 "+-----------------------------+-----------+--------------------------------+\n"
120 "| step0 | OT_DOUBLE | initial step size [default: |\n"
121 "| | | 0/estimated] |\n"
122 "+-----------------------------+-----------+--------------------------------+\n"
123 "| steps_per_checkpoint | OT_INT | Number of steps between two |\n"
124 "| | | consecutive checkpoints |\n"
125 "+-----------------------------+-----------+--------------------------------+\n"
126 "| stop_at_end | OT_BOOL | [DEPRECATED] Stop the |\n"
127 "| | | integrator at the end of the |\n"
128 "| | | interval |\n"
129 "+-----------------------------+-----------+--------------------------------+\n"
130 "| use_preconditioner | OT_BOOL | Precondition the iterative |\n"
131 "| | | solver [default: true] |\n"
132 "+-----------------------------+-----------+--------------------------------+\n"
133 "\n"
134 "\n"
135 "\n"
136 "\n"
137 ;
static const std::string meta_doc
A documentation string.