Answered
Limiting function evaluations in gamultiobj
It depends on whether you perform vectorized function evaluations ( |options.UseVectorized = true| ) and whether you have nonlin...

8 years ago | 0

Answered
Subscripted assignment dimension mismatch in linprog optimization
I am suspicious of this line: f=H(c,:); It seems that you intended to write f=H(C,:); Alan Weiss MATLAB mathe...

8 years ago | 0

Answered
How to implement a custom acquisition Function for the bayesopt package in Matlab
<https://www.mathworks.com/help/stats/bayesian-optimization-algorithm.html#bvaz8tr-1 As documented>, there is no way to use your...

8 years ago | 0

Answered
How do I create a function that will work when optimized using fminsearch when modelling heat transfer?
I don't knw what |Predicted_T(2,2)| or |Experimental_T(2,2)| are, but they look like scalars to me. If you want to sum over some...

8 years ago | 0

Answered
Implement the Travelling salesman problem
From <https://www.mathworks.com/help/optim/examples/travelling-salesman-problem.html the example that you mentioned> click the ...

8 years ago | 0

Answered
For each fmincon it overwrites the previous values, meaning at the end there is only 1 set of values when there should be 100. The code is running 100 times and displays all sets of values but not storing all sets. How do I resolve this?
Your code is inefficient in that you define many things inside the loop that should be assigned outside the loop. Using Walter's...

8 years ago | 1

| accepted

Answered
Exporting all solution variables from PDE Toolbox
I'm afraid that you have to do some post-processing. If your exported solution is |u|, which is the potential at the nodes, then...

8 years ago | 0

| accepted

Answered
How can I evaluate the results of SQP optimization algorithm in MATLAB?
Your options do not make a lot of sense -- for example, the |'LargeScale'| option does not do anything when you set an |'Algorit...

8 years ago | 0

Answered
fsolve not working in command window but working in Optimization Tool
Because the Optimization app internally calls the command-line version of |fsolve|, there can be no difference between their beh...

8 years ago | 0

Answered
quadprog for constrained maximisation
I don't know how that problem can be formulated for |quadprog|. However, it is simple to formulate it for |fmincon|. For help, c...

8 years ago | 0

Answered
fmincon with and without parallel computing yields different results
The only difference between using parallel computing and serial computing is that, in parallel, finite difference approximations...

8 years ago | 0

Answered
How may I do to let the value of 'x' in open and subsequently use a range of the x-value to find the minimum value of 'z' using GA.
I suggest that you look at some <https://www.mathworks.com/help/gads/genetic-algorithm.html examples in the documentation>, also...

8 years ago | 0

| accepted

Answered
Does MATLAB 2017b has a toolbox for Ant colony Optimisation ?
Sorry, no. Have you tried <https://www.mathworks.com/help/gads/patternsearch.html |patternsearch|> for nonsmooth optimization...

8 years ago | 0

| accepted

Answered
How to optimize two variable simultaneously in a function?
Are you doing curve fitting? I mean, you have a lot of data and you are trying to find the best parameters of an equation that f...

8 years ago | 0

| accepted

Answered
Optimization for math equation
For a more complete answer than Torsten gave, see <https://www.mathworks.com/help/matlab/math/example-curve-fitting-via-optimiza...

8 years ago | 0

Answered
How do I plot the output of fmincon when I'm already using options twice; once to include gradient using optimoptions and the next to plot using optiset?
Feel free to try options = optimoptions('fmincon','GradObj','on','OutputFcn',@outfun); Or, for people who like to set on...

8 years ago | 0

| accepted

Answered
what i do. i have no idea. given below is my problem.
The |ga| solver works best when you do not set options that conflict with your problem type. You set a specific mutation functio...

8 years ago | 0

Answered
How to include a nonlinear constraint in the fmincon when it is a hybrid function in the particle swarm optimization
The short answer is that you cannot. |particleswarm| does not accept nonlinear constraints. A hybrid function uses exactly the p...

8 years ago | 0

| accepted

Answered
Particle Swarm Optimization in a 2d searcher space
The Rosenbrock function has its minimum at the point |[1,1]|, not the origin. Alan Weiss MATLAB mathematical toolbox docum...

8 years ago | 0

Answered
How to use both fminunc and fmincon and increase MaxFunctionEvaluations for both correctly
I think that there is nothing wrong with your results, but I understand that the warning is unnerving. The simplest way to solve...

8 years ago | 0

Answered
Evaluate gradient on the vertices of a mesh
In the legacy workflow that you are using, the gradient of the solution is constant on each triangle, because the solution is pi...

8 years ago | 0

Answered
minimizing parameterized function with MultiStart (ideally in a loop)
I suggest that you remove your first line of code: x = [x(1),x(2)]; And, in addition to the link that Walter gave, you m...

8 years ago | 0

Answered
Determining Constants with Optimization Toolkit
Perhaps <https://www.mathworks.com/help/matlab/math/example-curve-fitting-via-optimization.html this example> will help. Or, if ...

8 years ago | 0

| accepted

Answered
Doubts on specifying 2-D "c" coefficients in Function Form
Perhaps some older documentation would help. <https://www.mathworks.com/help/releases/R2015b/pde/ug/c.html This documents the...

8 years ago | 0

Answered
fminunc - why is it not possible to limit the step length?
It sounds like you are using |fminunc| on a problem that has constraints. This is the wrong tool for the problem. If you have...

8 years ago | 0

| accepted

Answered
PDETOOL - How to find the label of domain?
I don't know how to choose the label numbers in a geometry except by creating the geometry using a <https://www.mathworks.com/he...

8 years ago | 1

| accepted

Answered
fmincon drives variables away from the solution
Surprisingly, <https://www.mathworks.com/matlabcentral/answers/386748-fmincon-lower-bound-issues there was another question> at ...

8 years ago | 0

Answered
Fmincon Lower Bound issues
By default, |fmincon| uses the |'interior-point'| algorithm, which strictly stays away from bounds. If you want results exactly ...

8 years ago | 1

Answered
How to minimize RAM utilization in GA Optimization tool ?
Your problem seems to be optimizing parameters of an ODE. I have no idea why your code uses so much memory, because you didn't p...

8 years ago | 0

| accepted

Load more