gurobi_solution_read


gurobi_solution_read, a MATLAB code which reads a file created by the optimization package GUROBI, representing the solution of a polyomino tiling problem, and writes out a simple ASCII file that MATLAB can read with the load() function.

For our problems, GUROBI reads an LP file defining an integer linear system, created by polyomino_monohedral_matrix() or polyomino_multihedral_matrix(), and then returns a solution in a file with a particular format. Once that file is converted by gurobi_solution_read(), the solution data can be read into MATLAB and printed or plotted.

Unlike CPLEX and SCIP, GUROBI only returns a single solution to the problem.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Related Programs and Data:

gurobi_solution_read_test

cplex_solution_read, a MATLAB code which extracts solution data from a CPLEX result file; CPLEX can be "fed" by an LP file created by POLYOMINO_MONOHEDRAL_MATRIX or POLYOMINO_MULTIHEDRAL_MATRIX, and the results can be displayed by POLYOMINO_MONOHEDRAL_TILING_PRINT or POLYOMINO_MULTIHEDRAL_TILING_PRINT.

gurobi, examples which call gurobi(), which is an mathematical programming package for optimization, solving problems in linear programming, mixed integer programming, and mixed integer quadratic programming.

polyominoes, a MATLAB code which defines, solves, and plots a variety of polyomino tiling problems, which are solved by a direct algebraic approach involving the reduced row echelon form (RREF) of a specific matrix, instead of the more typical brute-force or backtracking methods.

scip_solution_read, a MATLAB code which reads a file created by the integer programming package SCIP, representing the solution of a polyomino tiling problem, and writes out a simple ASCII file that can be read by load().

Reference:

  1. https://www.gurobi.com/ , the GUROBI home page.

Source Code:


Last revised on 24 January 2019.