Replies: 4 comments 1 reply
-
@Chuan701 What do you mean by MPC ? |
Beta Was this translation helpful? Give feedback.
-
I see, MPC means model predictive control. Thanks. For example, try running the following code which generates the message because the square root of minus one is nan:
|
Beta Was this translation helpful? Give feedback.
-
Sometimes nan's are expected in some or all of the components of f.Forward(0,x). In this case you can use |
Beta Was this translation helpful? Give feedback.
-
Sometimes it is helpful to use PrintFor to detect certain error cases; e.g., |
Beta Was this translation helpful? Give feedback.
-
cppad-20160000.1 error from a known source:
yq = f.Forward(q, xq): a zero order Taylor coefficient is nan.
Corresponding independent variables vector was written to binary a file.
vector_size = 133
file_name = /tmp/fileDJXt7B
index = 62
Error detected by false result for
if( CppAD::isnan( yq[ (q+1) * index + 0 ] )
at line 224 in the file
/usr/include/cppad/local/forward.hpp
mpc: /usr/include/cppad/utility/error_handler.hpp:207: static void CppAD::ErrorHandler::Default(bool, int, const char*, const char*, const char*): Assertion `false' failed.
Aborted (core dumped)
Does everyone encountered the same problem with MPC?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions