Gurobi / modeling-examples

Gurobi modeling examples
https://gurobi.github.io/modeling-examples/
Apache License 2.0
634 stars 278 forks source link

Cloud resource management - example contribution #39

Open nhtlongcs opened 2 weeks ago

nhtlongcs commented 2 weeks ago

Hi Gurobi Team,

Thank you for providing such an excellent examples repository—it's been incredibly helpful for newcomers. I would like to contribute an industry example focused on cloud resource management.

Problem Statement: The challenge is to meet cloud hiring demands by buying, moving, and dismissing servers between data centers, each with different lifespans. The objective is to maximize profit while managing server operations efficiently.

Proposed Contribution: We simulate the data and implement a linear programming solution for this scenario.

Could you please guide me on how to contribute this example to your repository?

Thank you

Marika-K commented 1 week ago

Hi, Thank you for the feedback and your contribution! You can create a PR. Please create a new folder for your example with an appropriate name. Add your example to README.md, at least to the section "Index of modeling examples" but also to other places, if it fits. Please also add the examples to the tests, i.e., to tox.ini. It would be good if your example does not need any special Python packages, the list of currently used packages can be seen in requirements_test.txt. Thanks!

Marika-K commented 1 week ago

One additional remark: Please use example data such that the size-limited license can be used, i.e., problems with at most 2000 variables, 2000 constraints, or if quadratic terms are present then at most 200 variables. In this way, it is possible to run the notebook with the size-limited trial license included in the pip package.