英译中Yes, that's correct. FMINCON is a function in MATLAB's Optimization Toolbox that is used for nonlinear optimization problems with constraints. It requires all values returned by user-defined functions to be of data type double. This means that any inputs or outputs of the functions used in FMINCON must be double precision floating point numbers. If you try to use a function that returns values of a different data type, such as single precision or integer values, FMINCON will generate an error.
时间: 2023-12-06 21:44:12 浏览: 263
是的,没错。FMINCON是MATLAB优化工具箱中的一个函数,用于带有约束的非线性优化问题。它要求用户自定义函数返回的所有值都是双精度浮点数数据类型。这意味着FMINCON中使用的函数的任何输入或输出必须是双精度浮点数。如果您尝试使用返回不同数据类型的值的函数,例如单精度或整数值,FMINCON将生成一个错误。
阅读全文