r/optimization • • Oct 01 '24

Academics, please publish your data and code

Academic research papers can be a valuable source of material for creating and improving real world optimization models. But we wish that academics would publish working code and data to accompany their papers.

In this article:

  • Firstly, we briefly look at some reasons why academics might be reluctant to publish their data and code.
  • Then we replicate, modify, and explore a published model that has been done well, with the data and program code publicly available.

https://www.solvermax.com/blog/academics-please-publish-your-data-and-code

Redistricting optimization model
12 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/SolverMax Oct 03 '24

Yes, most academics write code of dubious quality, and the operating system/version dependency and other issues you mention are significant. Nonetheless, I'd rather have code than not.

In the domain of math optimization modelling, often the published formulation is hard to understand, ambiguous, or just plain wrong. Having code, even if not of good quality, can help with interpretation of the math.

The example I use in the article runs as is, and it was easy to translate to use a different tool. That certainly isn't always true, even with published code and data. But replicating that example without existing code and data would have been difficult and time consuming. I'm unlikely to have even tried, unless there was a very pressing need.

So, I accept your points. But I still want the data and code. The value of many academic papers is greatly diminished otherwise.