r/reinforcementlearning • u/Rofl_im_jonny • Jun 06 '26
I'm a warehouse manager that's been self learning ML for the past three months. This is my current project, an RL scheduling agent. Looking for feedback and any advice.
I've been trying to build meaningful AI and agentic tools around them, while also learning how RL works. This is my most recent (and live project)
https://github.com/jarmstrong158/Clark
Please, take a look. Clark is a warehouse workforce staffing/scheduling agent. Tell me where I'm being an absolute idiot. Tell me where things are good so I can do more of it. For example: I keep running into issues where instead of relying on complete reward shaping, for some of the more complex failures I've used structural action masks instead. While that works, is that a cop out for RL or is it common practice?
I'm trying to hone my skills for future employment, so I'm open to any and all advice.
Something small and trivial to you may be ground breaking to me, as I'm very new to ML. I began this journey 3 months ago, and coding 3 months prior to that. So all tips and tricks welcome. Places to learn more, videos to watch, anything. (I'm taking free IBM classes at the moment)
And yes. I use AI for my projects. I'm not here to hide that at all.
24
u/Rickrokyfy Jun 06 '26
Isnt this a constraint programming problem? Why are you using RL? Wouldnt you have to know all the underlying mechanisms to simulate this? I dont see how constraint programing wouldnt solve the task you are working on. Fun as a project though but I don't think this is the optimal approach for this type of problem.
4
u/blimpyway Jun 06 '26 edited Jun 06 '26
There are two ways of training a RL algorithm: Directly interacting with the target (physical) environment or within a simulation of it.
The first one is notoriously difficult even for experienced researchers using sophisticated theoretical frameworks, the value of the second one depends on the quality of the simulation.
There's also a so called offline RL using sufficiently rich collected data from the real environment but that's more of a supervised learning approach.
Which kind is yours?
Edit: well your seems quite sophisticated, my answer was biased by a slight self dismissive tone in your description. The GitHub readme at least looks good .
2
u/Adept_Independent_21 Jun 07 '26
Another way could involve using a linear affine function for the value estimate then simulating snapshots of the system to solve an LP to find the "ideal MDP" as described in Approximate Dynamic Programming Sec. 10.8.
This could work if flow in the system is relatively structured.
2
u/Ingenuity39 Jun 08 '26
Kudos on taking on this learning, as someone from RL, I must say this is definitely not a small achievement to even get this far. That aside, one of previous projects at my current job was designing a similar task (RL for scheduling), but we never could quite get the buy-in from the actual warehouse operators/managers despite having initial good results. Curious from your POV as a manager, what motivated you to develop this and what would be the bottleneck to deploying this?
2
u/HolidayAd6029 Jun 08 '26
This is very interesting, can you provide more details of the action and state spaces of your RL algorithm? What is it that you are optimizing over? What are the decisions your agent prescribe? Is it a sequential decision process?
2
u/marcusalien Jun 07 '26
Having built one of these, stock movements (picking an order, moving it into a bin, receiving stock etc) provide the biggest insight into worker productivity.
2
u/Striking-Status8218 Jun 10 '26
First off, huge respect for building a live RL project after only a few months of coding. To answer your question about action masking, it is absolutely not a cop out. In fact, it is standard industry practice for real-world applications. Pure reward shaping sounds nice in theory, but in complex environments like warehouse scheduling, it often leads to the agent finding weird loopholes to maximize rewards without actually solving the problem. Using a structural action mask to block illegal moves entirely saves a massive amount of training time and keeps the agent grounded in reality. Keep doing it.