How can we implement GUROBI Optimizer such a problem?

Hi I have below scenario, actually I solved it with Greedy Methods, but I want to see GUROBI Optimizer results, indeed I downloaded the GUROBI packet from their website it is working for easy linear programming questions but I'am struggled about below problem, could anyone help me?
My objective function, variables and constraints are:

Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Products

Release

R2019b

Asked:

on 21 Dec 2020

Edited:

on 21 Dec 2020

Community Treasure Hunt

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

Start Hunting!