3.1.2 Conversion tools

To simplify the creation of the BC instances we provide some tools to convert standard instances in sparse format to the BC format. All the tools can be downloaded from the BiqCrunch download page .

From Biq to BiqCrunch

To convert binary quadratic problems (e.g., [1]) to a standard BC instance we provide the qp2bc conversion tool. This tool converts an instance in a standard sparse format to a valid instance for BiqCrunch. This tool is written in Python and can be used directly from command line:

$ ./qp2bc.py <BIQ_INSTANCE> > <BC_INSTANCE>

From Mac to BiqCrunch

To convert Max-Cut problems to a standard BC instance we provide the mc2bc conversion tool. This tool converts an instance in a standard sparse format to a valid instance for BiqCrunch. This tool is written in Python and can be used directly from command line:

$ ./mc2bc.py <MC_INSTANCE> > <BC_INSTANCE>