Building on the concept and implementation of PAVER 2.0, the main goal of VIVA is to allow end users to interact with their own uploaded benchmark data from mathematical optimization problems and their solvers. The data is presented in a tabular format, with the added ability to visualize specific results through various plots, making it easier to understand and interpret the data.
Demo-data is attained from miplib2010 examples. The .solu file data from the problem libraries MINLPLib, MIPLIB 2017 and MIPLIB 2010 can be used directly with the Best-known bounds selector in the navigation bar.
Performance Note: Performance slowdowns may occur when handling a large number of files or particularly large datasets, as this application operates entirely in the browser without relying on a backend server to parse and process the files.
Display Note: While mobile-sized screens are supported, the most optimal experience is achieved using a larger display. A light and a dark theme are available.
Development Note: This project is still a work in progress, and therefore, bugs and unexpected behavior may occur.
Download the release ZIP and extract the contents, or clone the repository, or visit the web version at viva-app.xyz.
Open the file report.html found in the root directory. It is the page with the results table.
Load the files, in one of these ways:
The files can be:
.trc format, one for each solver..csv file with instance properties and a .solu file with the best known primal and dual bounds of each instance, both for additional information..trc files, a single UserConfiguration.json file, which can be created by this application. It cannot be loaded together with .trc files.The start page lists the files that you chose, with what each of them is taken for, the solver of a .trc file, and what stops the files from being uploaded.
Optionally, choose where the best known bounds come from with Best-known bounds in the navigation bar: None, MINLPLib, MIPLIB 2017 or MIPLIB 2010. When a .solu file is chosen, the selector shows Uploaded .solu file and cannot be changed, as the file is used.
Click Upload in the navigation bar.
The table or plot with the benchmark results is shown when the files are loaded, depending on the currently active page. A line below the buttons tells the number of solvers and instances and where the bounds come from. Use the View Table or Update plot button to show it again after changing the settings. Uploaded result files of more than 50,000 rows are not shown at once, use the button for them.
The data stays when you open the other pages in the same tab. The navigation bar shows Session data with a Clear button that forgets it. Use Save to browser in the Data menu to keep the data for later visits.
Available plots, in the Plots menu:
Compare a pair of solvers on the Compare Solvers page. Direct comparison on how many instances the solver time was better, worse, or equal.
The button with the moon or the sun in the navigation bar switches between the light and the dark theme.
The start page is shown while no data is loaded.
The Data menu is shown when data is loaded. It is on every page, and groups the actions for the data:
UserConfiguration.json).Every data set of a chart has its own color, line dash and point shape. The chart has a text for screen readers with its kind, axes and data sets.
Some plots have settings, which are applied with Update plot:
The comparison uses the settings Time limit (s), Gap limit (%) and Gap type, as on the performance profile page, and Termination Status: only the runs that ended with this status are compared.
The following header structure and order should be used in conjunction with .trc files, if no header is provided in the result files:
InputFileName
ModelType
SolverName
NLP
MIP
JulianDate
Direction
NumberOfEquations
NumberOfVariables
NumberOfDiscreteVariables
NumberOfNonZeros
NumberOfNonlinearNonZeros
OptionFile
ModelStatus
TermStatus
ObjectiveValue
ObjectiveValueEstimate
SolverTime
NumberOfIterations
NumberOfDomainViolations
NumberOfNodes
UserComment
For further information, see https://gams.com/latest/docs/UG_SolverUsage.html#UG_SolverUsage_TraceFile.
The file has these fields:
version: The version of the format, currently 2. A file without it is of version 1, see below.dataSet: The results, with a row for every solver run.dataFileType: The kind of data, "json" for data that was saved by the application.defaultTime (optional): The Time limit (s) shown in the app. Runs exceeding it are counted as unsolved.gapLimit (optional): The Gap limit (%). An instance counts as solved when its gap is at or below it.Every row of dataSet is an object. Its keys are the names of the columns of the trace file (see 2.1), and its values are numbers, true or false where the value is one, and else text. A column that a row does not have is empty. The columns of the first row come first, then the columns that the other rows add.
{
"version": 2,
"dataSet": [
{ "InputFileName": "alan", "ModelType": "MINLP", "SolverName": "knitro", "Direction": "min", "SolverTime": 0.142, "Fail": false },
{ "InputFileName": "ball_mk2_30", "ModelType": "MINLP", "SolverName": "knitro", "Direction": "min", "SolverTime": 900.034, "Fail": false },
{ "InputFileName": "ball_mk3_10", "ModelType": "MINLP", "SolverName": "knitro", "Direction": "min", "SolverTime": 0.95, "Fail": true }
],
"dataFileType": "json",
"defaultTime": 900,
"gapLimit": 0.1
}
The application writes this format when the data is saved to the browser, and when the configuration is exported.
Version 1. Earlier versions of the application wrote dataSet as a list of the lines of a trace file as text, without a version. Such a file is still read, and what is saved or exported from it is in the format above. A file with a version that is higher than the one that the application knows is not read, and the application says so.
{
"dataSet": [
"* InputFileName,ModelType,SolverName,Direction,SolverTime,Fail",
"alan,MINLP,knitro,min,0.142,false",
"ball_mk2_30,MINLP,knitro,min,900.034,false"
],
"dataFileType": "json"
}
An optional file with information about the instances, for example the instance data of MINLPLib. Its columns are added to the table next to the results.
;). The first line has the names of the columns, and every other line is one instance.name (or InputFileName) holds the name of the instance. It has to be the same as the name of the instance in the .trc files, as it is what joins the two. A result whose instance is not in the file gets empty cells in the columns of the file.primalbound and dualbound (in lower case) are the best known bounds of the instance, and show in the table as ProblemPrimalBound and ProblemDualBound. The gaps of the results are calculated against them. Where an instance has no bound, the bound that the solver reports for the result is used instead. A bound from a .solu file (see 2.4) replaces the bound of this file.name;application;nvars;ncons;primalbound;dualbound
alan;Portfolio Optimization;8;7;2.925;2.925
alkyl;Alkylation;14;7;-1.764999646;-1.765001273
A larger example is instancedata.csv, which is the instance data of MINLPLib.
An optional file with the best known bounds of the instances, in the format of the .solu files of MINLPLib, MIPLIB 2017 and MIPLIB 2010. These libraries are also built into the application, see the selector Best-known bounds in the navigation bar. A .solu file that is uploaded is used instead of the library.
.trc files.=best=: the best known primal bound.=bestdual=: the best known dual bound.=opt=: the optimal value, which is both the primal and the dual bound.=inf=: the instance is infeasible, and both bounds are infinite.=best= and a =bestdual= line. They are all used. When two lines give the same bound, the first one is used.1.163297e+5.=best= 4stufen 116329.6706
=bestdual= 4stufen 109309.63
=opt= alan 2.925
=inf= infeasible_example 0
Larger examples are minlp.solu and miplib.solu.