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.

Réponses (3)

Alan Weiss
Alan Weiss le 21 Déc 2016

0 votes

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 commentaire

Morten Munk
Morten Munk le 22 Déc 2016
many thanks for your help I managed solve it
Morten Munk
Morten Munk le 22 Déc 2016

0 votes

thanks I will try that the video was the only thing I could find
Morten Munk
Morten Munk le 22 Déc 2016

0 votes

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

Cette question est clôturée.

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by