Skip to content

Simple code for adding a MIP start solution to CPLEX and Gurobi

License

Notifications You must be signed in to change notification settings

rocarvaj/mipstart-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adding mip starts

This code is meant to isolate a weird behavior by CPLEX (12.7.1 and 12.8). When adding the optimal solution for the markshare2 problem, provided in MIPLIB2017, as a MIP start, CPLEX claims that no feasible solution was found from it. This does not happen when using Gurobi.

Edit: I had a dumb bug in my code. This code reads a .SOL solution (as provided by MIPLIB) and adds it as a MIP start. There is a CPLEX and a Gurobi version.

Requirements

  • Boost (just for the split function for strings).

Compiling

  1. Update paths in makefile
  2. For CPLEX, use make cpx. For Gurobi, make grb.

Usage

./example{_grb} data/markshare.mps.gz data/markshare.sol

About

Simple code for adding a MIP start solution to CPLEX and Gurobi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published