I am asked to create an objective function of the problem below. Please, how can I move from here.
1 次查看(过去 30 天)
显示 更早的评论
Compute the total cost of each food type by multiplying the Price column of the table food and the optimization variable servings. Name the resulting optimization expression C. Make sure to use element-wise operator .* when performing the multiplication.
I have tried this:
c = food.Price.*(servings), but the answer is not right.
1 个评论
Dyuman Joshi
2022-10-31
编辑:Dyuman Joshi
2022-10-31
What exactly does it mean by "optimization variable"?
Also, can you attach your data?
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!