Some features in Gurobi Python interface

In order to provide a better modeling experience, Gurobi provides a few tailored objects and functions for building up optimization models. This post is a quick review of them. Gurobi tuplelist This is a subclass of list to store lists of tuples, for example: select is a very efficient way to select elements in a tuplelist….

List of on-line learning websites

Basically, this list is concentrated on data science related courses, please feel free to let me know if there is something good but I didn’t know yet! Thanks! Coursera: With sufficient classes among subjects, the platform is also very friendly. edX: More like the typical class in the university, and length of classes is also…

Python String Format

About number formatting The following table collects the most essential use of str.format() Try print(“FORMAT”.format(NUMBER)) if you would like to run any of these cases. Number Format Output Description 3.1415926 {:.2f} 3.14 2 decimal places 3.1415926 {:+.2f} +3.14 2 decimal places with sign -1 {:+.2f} -1.00 2 decimal places with sign 2.71828 {:.0f} 3 No…