Borrar filtros
Borrar filtros

I am asked to create an objective function of the problem below. Please, how can I move from here.

1 visualización (últimos 30 días)
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.

Respuestas (0)

Categorías

Más información sobre Problem-Based Optimization Setup en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by