displayallsolutions
显示在函数逼近期间找到的所有解
语法
displayallsolutions(solution)
说明
displayallsolutions( 显示与 solution)FunctionApproximation.LUTSolution 对象关联的所有解,包括不可行解。
输入参数
要从中显示所有关联解的 FunctionApproximation.LUTSolution 对象。
示例
创建一个 FunctionApproximation.Problem 对象,用于定义要逼近的数学函数。然后,使用 solve 方法获取一个 FunctionApproximation.LUTSolution 对象。
使用 displayallsolutions 方法显示在逼近过程中找到的所有解。
problem = FunctionApproximation.Problem('sin')problem =
FunctionApproximation.Problem with properties
FunctionToApproximate: @(x)sin(x)
NumberOfInputs: 1
InputTypes: "numerictype(0,16,13)"
InputLowerBounds: 0
InputUpperBounds: 6.2832
OutputType: "numerictype(1,16,14)"
Options: [1×1 FunctionApproximation.Options]solution = solve(problem)
solution =
FunctionApproximation.LUTSolution with properties
ID: 8
Feasible: "true"displayallsolutions(solution)
| ID | Memory (bits) | ConstraintMet | Table Size | Breakpoints WLs | TableData WL | BreakpointSpecification | Error(Max,Current) | | 0 | 64 | 0 | 2 | 16 | 16 | EvenPow2Spacing | 7.812500e-03, 1.590463e+00 | | 1 | 464 | 0 | 27 | 16 | 16 | EvenPow2Spacing | 7.812500e-03, 7.823061e-03 | | 2 | 864 | 1 | 52 | 16 | 16 | EvenPow2Spacing | 7.812500e-03, 1.978726e-03 | | 3 | 64 | 0 | 2 | 16 | 16 | EvenSpacing | 7.812500e-03, 1.000000e+00 | | 4 | 560 | 1 | 33 | 16 | 16 | EvenSpacing | 7.812500e-03, 4.817965e-03 | | 5 | 304 | 0 | 17 | 16 | 16 | EvenSpacing | 7.812500e-03, 1.887217e-02 | | 6 | 432 | 0 | 25 | 16 | 16 | EvenSpacing | 7.812500e-03, 8.513680e-03 | | 7 | 496 | 1 | 29 | 16 | 16 | EvenSpacing | 7.812500e-03, 6.288182e-03 | | 8 | 464 | 1 | 27 | 16 | 16 | EvenSpacing | 7.812500e-03, 7.324035e-03 | | 9 | 448 | 0 | 26 | 16 | 16 | EvenSpacing | 7.812500e-03, 7.895832e-03 | | 10 | 704 | 1 | 22 | 16 | 16 | ExplicitValues | 7.812500e-03, 7.323370e-03 | Best Solution | ID | Memory (bits) | ConstraintMet | Table Size | Breakpoints WLs | TableData WL | BreakpointSpecification | Error(Max,Current) | | 8 | 464 | 1 | 27 | 16 | 16 | EvenSpacing | 7.812500e-03, 7.324035e-03 |
版本历史记录
在 R2018a 中推出
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)