Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
|
The class for defining an optimization result. More...
Public Member Functions | |
function | report (in obj, in settings, in style, in resultFilename, in saveSeparatly) |
Matlab function to create graphical and textual report from a result. | |
function | Result (in problem, in solver) |
Default constructor setting default Result object. | |
function | save (in obj, in filename) |
Function to save the Result object. | |
function | setResult (in obj, in X, in converged, in info) |
Function to set the results after solving. | |
Public Attributes | |
Property | comment |
String: Personal comment this result. | |
Property | filename |
String: Filename with path, without extension. | |
Private Attributes | |
Property | computerName |
String: Name of the computer. | |
Property | converged |
Bool: True if optimal solution was found (default: false) | |
Property | creationTime |
Datetime: Creation date with 'dd-MMM-yyyy HH:mm:ss'. | |
Property | gitHashString |
String: Git hash of the current commit. | |
Property | gitURL |
String: Url of git repository. | |
Property | info |
Struct: Further information of the solver. | |
Property | problem |
Object of the class Problem. | |
Property | solver |
Object of the class Solver. | |
Property | userName |
String: User name of the computer. | |
Property | X |
Double array: Solution of the problem. | |
The class for defining an optimization result.
This class was implemented to ensure a consistent data structure to save results.
This class contains methods which are generally applicable to evaluate results (e.g. writeMovie()). Project specific evaluation methods should be saved in our personal scripts folder!
function report | ( | in | obj, |
in | settings, | ||
in | style, | ||
in | resultFilename, | ||
in | saveSeparatly | ||
) |
Matlab function to create graphical and textual report from a result.
Please note that no PDF is generated, if no resultFilename is given as input argument!
obj | Result object |
settings | (optional) Struct: Settings defining what to report. It combines the fields specified in Collocation.extractData() and Collocation.report(). (use empty to skip) |
style | (optional) Struct: Settings defining the style for reporting. See plotVarType() for details. (use empty to skip) |
resultFilename | (optional) String: Filename to save the report in a LaTeX document. If the filename is an empty string, the result.filename will be used to save the LaTeX document. If there is no input for the filename at all, the report will be printed in the console and nothing will be saved. |
saveSeparatly | (optional) Boolean: If true, save the solver report will be saved in a separate .tex and all figures will be saved as .fig and tikz standalone. Figures will be saved as .fig and tikz standalone. (default: 0) |
simVarTable | Table: Summarizing all data which was reported (see Collocation.extractData() for details) |
function save | ( | in | obj, |
in | filename | ||
) |
Function to save the Result object.
The Result object will be saved in a variable called 'result' and saved using the given filename.
obj | Result class object |
filename | (optional) String: Filename with path, without extension (default: Used Result.filename) |
function setResult | ( | in | obj, |
in | X, | ||
in | converged, | ||
in | info | ||
) |
Function to set the results after solving.
obj | Result class object |
X | Double array: Solution of the problem |
converged | Bool: True if optimal solution was found |
info | (optional) Struct: Further information |
Property comment |
String: Personal comment this result.
|
private |
String: Name of the computer.
|
private |
Bool: True if optimal solution was found (default: false)
|
private |
Datetime: Creation date with 'dd-MMM-yyyy HH:mm:ss'.
Property filename |
String: Filename with path, without extension.
|
private |
String: Git hash of the current commit.
|
private |
String: Url of git repository.
|
private |
Struct: Further information of the solver.
|
private |
Object of the class Problem.
|
private |
Object of the class Solver.
|
private |
String: User name of the computer.
|
private |
Double array: Solution of the problem.