フィルターのクリア

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
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 件)

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by