PrintResult: Difference between revisions
From TomWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 66: | Line 66: | ||
|Example:||To increase the number of variables printed by ''PrintResult ''to 50, do | |Example:||To increase the number of variables printed by ''PrintResult ''to 50, do | ||
< | <source lang="matlab"> | ||
global MAX_x | global MAX_x | ||
MAX_x = 50; | MAX_x = 50; | ||
PrintResult(Result); | PrintResult(Result); | ||
</ | </source> | ||
|} | |} |
Latest revision as of 08:18, 10 January 2012
Purpose
Prints the result of an optimization.
Calling Syntax
PrintResult(Result, PriLev)
Inputs
Input | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Result | Result structure from optimization. | |||||||||
PriLev | Printing level: (default 3)
|
Global Parameters Used
To avoid too many variables, constraints and residuals in the output, three global variables are limiting the number printed:
Parameters | Description |
---|---|
MAX_x | Maximum number of variables |
MAX_c | Maximum number of constraints |
MAX_r | Maximum number of residuals in least squares problems |
Example: | To increase the number of variables printed by PrintResult to 50, do
global MAX_x
MAX_x = 50;
PrintResult(Result); |