Easily compute statistics about Feature Kernel
This program can be easily tested and compiled using cargo. To test
run:
cargo testTo compile the optimized executable, run:
cargo build --releaseThe result will be located into directory target/release, the executable
name depends on the platform:
feasthon Unixfeasth.exeon Windows
To get the global help message run:
feasth --helpfeasth is designed to compute indexes from the log file generated by
Feature Kernel. It is
possible to compute feasibility thresholds or usage ratios.
To compute any value feasth needs the size of the mip model. This
size can be provided to feasth in three ways:
- using
--modeloption: give the mps file and letfeasthcompute the size from the model file. This procedure is not completly reliable, use it only as last resort. - using
--sizeoption: pass directly the model size tofeasth. It's user's responsability to check the correctness of this value. - using
--autoflag: letfeasthsearch the size online (on miplib). This search is done using the name of the log file it must be in the formatINSTANCE_NAME-init.csv, sofeasthcan search forINSTANCE_NAMEautomatically.---autodoes not work if the log file name is not in this format orINSTANCE_NAMEis not an instance on MipLib.
feasth used with thresh computes Integer Feasibility Threshold(IFT)
and Continuos Feasibility Threshold(CFT).
For example:
feasth thresh problem-init.csv -s 1234 will print IFT and CFT on the console then exit.
It is possible to automatically output to file, using the -o:
feasth thresh problem-init.csv -a -o problem-into.txtin this case model size is get automatically from the internet.
It is possible to get the help message for this specific command:
feasth thresh --helpfeasth run with command ratio computes the usage ratio
for each sub problem present in the given log file (same file as thresh)
and returns a CSV, the first field is the usage ratio itself and
the second is the status (directly copied from the log file).
Example:
feasth ratio problem-init.csv -m problem.mpscomputes model size parsing problem.mps then computes the
ratios and outputs the csv directly to the console.
It is also possible to output directly to a file using the -o flag:
feasth ratio problem-init.csv -a -o problem-ratio.csvIt is possible to get the help message for this specific command:
feasth ratio --helpNote that ratio and thresh share the same inner arguments.
Anything that can be used and accepted from one command can be
automatically accepted by the other.