PrintResult: Difference between revisions
From TomWiki
Jump to navigationJump to search
(Created page with "==Purpose== Prints the result of an optimization. ==Calling Syntax== <pre> PrintResult(Result, PriLev) </pre> ==Inputs== {| class="wikitable" !Input||Description |- |''Resul...") |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Utility Functions]] | |||
==Purpose== | ==Purpose== | ||
Revision as of 10:55, 22 July 2011
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); |