Fmincon how many variables
Search MathWorks. MathWorks Answers Support. Open Mobile Search. Trial software. You are now following this question You will see updates in your activity feed. You may receive emails, depending on your notification preferences. How to speed up fmincon when there are too many variables? How many variables can fmincon handle at most? Show older comments. Vote 0. Answered: Alan Weiss on 7 Apr I need to solve an optimization problem with two nonlinear equality constraints.
My function evaluation is very fast less than a second and I also provide fmincon with the gradients of my objective and constraint functions. However, when fmincon is slow when there are about variables, and it is very slow when there are variables.
Considering my function evaluation is super fast, I guess the bottle neck is the speed of fmincon. Based on your location, we recommend that you select:. Select the China site in Chinese or English for best site performance.
Other MathWorks country sites are not optimized for visits from your location. Toggle Main Navigation. Search Answers Clear Filters. Answers Support MathWorks. Search Support Clear Filters. Support Answers MathWorks. Search MathWorks. MathWorks Answers Support. Open Mobile Search. Trial software. You are now following this question You will see updates in your activity feed. You may receive emails, depending on your notification preferences.
Using fmincon for optimization, when having too many variables. But some of the variables should be chosen as constant. Thus, the variables should change into their values set by the user in objective function decreasing the variable number. If he set only one of them, then fmincon can solve for the other. And how to change variables into constant values. As a first glance fmincon optimize the function and give 4 vraiables as x vector. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to use fmincon with variable length vector and prevent user to select a value violating constraints? Ask Question. Asked 5 years, 3 months ago. Active 4 years, 8 months ago. Viewed times. I have an optimization problem where I can solve the question with fmincon in matlab.
Improve this question.
0コメント