Ceiling function for objective function in MILP optimization
Show older comments
Hi.
I am using intlinprog to optimise a room allocation schedule for an event. My variables are all integers.
I need to minimise the cost of running this event. Cost is incurred for multiples of 28 people in a room. For example having a room with 0-28 people costs 15$, a room with 29-56 people costs 30$.
I figured I could use the a ceiling function to round up (# of people / 28) to the closest integer, but I cont find a way to incorporate this into the objective function.
Is it possible to use ceiling, or is there a workaround?
Any ideas would be appreciated.
Thanks for reading my question. M
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Optimization Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!