Input File Format¶
The current format start with a optional YAML header for metadata follow by the data as show in the template below:
---
<Metadata 01>: <Value 01>
<Metadata 02>: <Value 02>
---
<Problem Name 01> <Exit Flag 01> <Cost 01>
<Problem Name 02> <Exit Flag 02> <Cost 02>
<Problem Name 03> <Exit Flag 03> <Cost 03>
...
where
<Metadata XX>is the name of metadata field<Value XX>is the value of the metadata field<Problem Name XX>is the name of the problem<Exit Flag XX>iscord, meaning converged and diverged, respectively<Cost XX>is the "cost" (e.g. time spent) to be used for the performance profile until solve the problem or give up.
Some examples of input file are provided at perprof/examples (see it on GitHub).
You can build various examples of plots using these example input files with the following:
cd perprof/examples
./make-examples.sh
This will generate 8 simple examples in the folder
perprof/examples/plots.
YAML header¶
The YAML header store some useful metadata information and optionally some configurations.
Metadata¶
algnameThe name of the algorithmic/solver to be used in the plot. Default: File name.col_dualThe column corresponding to the dual feasibility at the solution. Default: 6col_exitThe column corresponding to the exit flag. Default: 2col_fvalThe column corresponding to the objective function value at the solution. Default: 4col_nameThe column corresponding to the problem names. Default: 1col_primalThe column corresponding to the primal feasibility at the solution. Default: 5col_timeThe column corresponding to the time/cost spent on the problem. Default: 3free_formatOnly check for mark of success. Default: FalsemaxtimeThe maximum time that a algorithmic/solver can run. Default: inf (i.e. not verified)mintimeThe minimum time that a algorithmic/solver need to run. Default: 0subsetThe name of the file to be used for the subset. Default: NonesuccessList of strings to mark success. Default: ‘c’