ConvertGurobiSolToIndex.pyΒΆ

Description: Covert .sol file (by gurobi) to index file for subsampling gradients.
It is used for subsampling gradients by Mixed Integer Linear Programming (MILP)

Usage:
  ConvertGurobiSolToIndex.py  <solfile> <indexfile> -n <numberOfSamples> [-v]
  ConvertGurobiSolToIndex.py (-h | --help)

Options:
  -h --help                Show this screen.
  -v --verbose             Verbose
  -n <numberOfSamples>     number of samples used in shells

References:
  "Designing Single- and Multiple-Shell Sampling Schemes for Diffusion MRI Using Spherical Code",
  Jian Cheng, Dinggang Shen, Pew-Thian Yap, MICCAI 2014.

Examples:
ConvertGurobiSolToIndex.py solution_gurobi.sol indexInShells.txt -n 90,90,90

Author(s): Jian Cheng (jian.cheng.1983@gmail.com)

Copyright (c) 2015-2017 the dmritool contributors.
For more information, see https://diffusionmritool.github.io