I am asked to create an objective function of the problem below. Please, how can I move from here.
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
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 Kommentar
  Dyuman Joshi
      
      
 am 31 Okt. 2022
				
      Bearbeitet: Dyuman Joshi
      
      
 am 31 Okt. 2022
  
			What exactly does it mean by "optimization variable"?
Also, can you attach your data?
Antworten (0)
Siehe auch
Kategorien
				Mehr zu Problem-Based Optimization Setup finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

