How could I write this equation in matlab?

3 views (last 30 days)
Danielle Strong
Danielle Strong on 11 Sep 2015
Edited: Alan Weiss on 11 Sep 2015
i=product i j=small batch size
xij= decision variable 1, quantity of ij to make rij= revenue per unit for ij vij= variable cost for ij yij= decision variable 2, decision to make ij Fi= fixed cost to make ij Di= demand of i
I have not given numerical values yet to the variables such as revenue, variable cost and fixed cost, but I just need a general format for coding this.
Thank you

Answers (1)

Alan Weiss
Alan Weiss on 11 Sep 2015
Edited: Alan Weiss on 11 Sep 2015
This looks like a Mixed-Integer Linear Programming problem. I suggest that you look at the examples in the documentation. Your problem seems to share a lot of features with the factory problem, but you might want to consult the basics problem first.
Alan Weiss
MATLAB mathematical toolbox documentation

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!