r/optimization

2.7K archived posts · Aug 2009 – Sep 2026

Random post

u/Ties_P•

I was sweeping floors at a supermarket and decided to over-engineer it.

Instead of just… sweeping… I turned the supermarket into a grid graph and wrote a C++ optimizer using simulated annealing to find the “optimal” sweeping path.

It worked perfectly.

It also produced a path that no human could ever walk without losing their sanity. Way too many turns. Look at this:

https://i.redd.it/3o9h1rnopxbg1.gif

Turns out optimizing for distance gives you a solution that’s technically correct and practically useless.

Adding a penalty each time it made a sharp turn made it actually walkable:

https://i.redd.it/294twnpppxbg1.gif

But, this led me down a rabbit hole about how many systems optimize

12728


u/vniversvs_•

guys. i'm doing a little market research for a project.

i used to be a researcher in optimization who left academia to become a data scientist. Lately i've started thinking of creating a channel around optimization in all its aspects: practical and theoretical, beginner and expert, combinatorial and continuous, etc. including a view also towards practical toy projects. This means i'd create content such as elementary lectures for undergrads, deeper topic lectures for graduates, deep dives into recent papers/progress, create toy-model code to visualize all this, even play around with attempting to solve interesting toy-problems with reinforcement learning (an area i know a little, but am not

3527

I'm working through MIT OCW 6.7220 Nonlinear Optimization (Spring 2025) and looking for 2–5 people who want to follow the course together.

The goal would be:

  • watch lectures according to the course schedule
  • independently attempt each problem set
  • meet online once/twice a week
  • discuss difficult problems and compare approaches
  • explain proofs/optimization theory to each other
  • work through the material over ~8–12 weeks

Topics include convex optimization, optimality conditions, Lagrange multipliers, KKT, duality, gradient/Newton methods, etc.

I'm particularly interested in people doing mathematical optimization / numerical optimization / operations research / ML / control.

If in

3237

I need a commercial MILP solver. We're not a big company - it's just one more license.

You'd think due to it being only a single license, they'd just be like "Hey, yeah it's $X for one named-user, 8 threads max."

No, it's not like that. It took weeks to get a quote from Xpress and CPLEX. Multiple emails and calls.

The only one that made it easy was Cardinal - but their price / performance ratio was off the charts. I really wanted to buy it because they made it easy, but it's not fast enough.

I still haven't got one from Gurobi despite asking three times, including a phone call. It's been literally months trying to get a quote. My company even has an active paid license for Gurobi right

3130

u/German_Heim•

Hi!

I've been working on oximo, a mathematical optimization modeling framework for Rust (https://github.com/oximo-rs/oximo).

The library lets users formulate and solve optimization problems in Rust using a high-level modeling API, similar to tools like Pyomo (Python), JuMP (Julia), or GAMS.

oximo supports modeling and solving:

  • Linear Programming (LP)
  • Mixed-Integer Linear Programming (MILP)
  • Quadratic Programming (QP)
  • Nonlinear Programming (NLP)
  • Mixed-Integer Nonlinear Programming (MINLP)

Example:

let m = Model::new("transport");
let x = m.var("x").lb(0.0).build();
let y = m.var("y").lb(0.0).ub(4.0).build();

m.constraint("c1", (x + 2.0 * y).le(14.0));
m.constra
269

u/dictrix•

So, I have recently found that there is a serious issue with benchmarking evolutionary computation (EC) methods. The ''standard'' benchmark set used for their evaluation has many functions that have the optimum at the center of the feasible set, and there are EC methods that exploit this feature to appear competitive. I managed to publish a paper showing the problem and identified 7 methods that have this problem:

https://www.nature.com/articles/s42256-022-00579-0

Now, I performed additional analysis on a much bigger set of EC methods (90 considered), and have found that the center-bias issue is extremely prevalent (47 confirmed, most o

2411

u/alexweinst_dd•

If you are interested in applications of mixed-integer programming in industry, then you will enjoy this new article I wrote on the DoorDash engineering blog “Using ML and Optimization to Solve DoorDash’s Dispatch Problem.” The article takes a deep dive under the hood of DoorDash’s logistics platform. We discuss the unique factors we have to consider in our dispatch problem and how we optimize over a variety of data inputs, including predictions from our ML models, to ensure speedy deliveries and maximize opportunities for Dashers. Check it out! [https://doordash.engineering/2021/08/17/using-ml-and-optimization-to-solve-doordashs-dispatch-problem/](https://doordash.engineering/2021/08/17/usi

231

u/OptimizationGeek•

Hey Geeks,

we've created a Youtube Channel (https://www.youtube.com/channel/UCJaL6SBbC7XaP7BbWKbR5nA) to explain the topic of optimization and solve problems in a simple and understandable way.

With our passion for mathematical Optimization, we want to give you easy access to theoretical knowledge and potential applications for these approaches. It all started when I started to optimize and realized that the theoretical knowledge was there in papers but was hard to process. That’s why I started to do videos to easily explain how optimizers work (i.e. NGSA-II).

Stop by and give feedback or ask me your questions - and never for

238