Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Can fmincon (optimization tool) be used over one variable.?

Asked by Deviprakash Upadhyaya on 4 Feb 2013

I am taking uniform thickness of a singly curved cylindrical Shell as a design variable for optimization with Static(Vertical deflection) and dynamic(frequency) as Constraints.


Deviprakash Upadhyaya



No products are associated with this question.

1 Answer

Answer by Alan Weiss on 4 Feb 2013
Accepted answer


However, I am not sure that this is the answer you wanted. Feel free to ask again with more detail. Meanwhile, you might be able to answer some of your own questions by looking at examples in the documentation.

Alan Weiss

MATLAB mathematical toolbox documentation


Deviprakash Upadhyaya on 11 Feb 2013

Alan Weiss, it will help me a lot if you can give a example for single variable constrained optimization using fmincon.

Alan Weiss on 11 Feb 2013

Usually a single-variable problem falls in the domain of fminbnd. But if you really want to use fmincon:

 lb = 5;
 ub = 15;
 x0 = 10;
 [x,fval] = fmincon(@sin,x0,[],[],[],[],lb,ub)

Alan Weiss

MATLAB mathematical toolbox documentation

Deviprakash Upadhyaya on 12 Feb 2013

Thank you Alan.

Alan Weiss

Contact us