Have have problem with my optimisation model

Hey i am new to matlab, and I have tried to make the totorial for Mathematical Modeling with Optimization, but then I type the command it says " Undefined function or variable 'f'. I have attach a picture of my editor and command.
hope some one can help me.

Answers (3)

You might find it easier to run the problem using the documentation version of the tutorial rather than trying to correctly transcribe the video. If that is what you are doing--it just seemed that way to me.
Alan Weiss
MATLAB mathematical toolbox documentation

1 Comment

many thanks for your help I managed solve it
thanks I will try that the video was the only thing I could find
hey Alan hope you can help me again I get an error in my optimoptions function, but in a preprogramed, i have attached a screenshot

This question is closed.

Asked:

on 21 Dec 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!