Answered
running FMINUNC -- Error using fminusub (line 119)
The error message tells you that the finite differencing routine, which adds or subtracts small amounts to the current point, ra...

8 years ago | 1

Answered
solvepde resulting in Error: Step size too small.
The error comes from the nonlinear solver having trouble. You might be able to get an answer by giving an <https://www.mathworks...

8 years ago | 0

Answered
I am getting this error while solving "fsolve stopped because it exceeded the function evaluation limit,
You wrote lambda = 0.1:1; This gives the same value as lambda = 0.1; Later you call |lambda(i)| for |i| from 1 t...

8 years ago | 0

Answered
Problem with ga optimization of 2 variables with IntCon
I do not understand, and am therefore somewhat suspicious of, your |mpxfoil| call. Did you try to call |gaCL(x)| for a variety o...

8 years ago | 0

| accepted

Answered
Which specific functions does the GA use?( for Creation ,Crossover and Mutation functions?)
If you want to use your own custom creation, mutation, and crossover functions, then do not include an |IntCon| argument when yo...

8 years ago | 0

| accepted

Answered
I am working with pattern search code ..I want to parallelize the code so that i can perform it on high performance computing to reduce the time.how can i parallelize the code?suggestions?
If you are using |patternsearch| from Global Optimization Toolbox, then <https://www.mathworks.com/help/gads/how-to-use-parallel...

8 years ago | 2

Answered
I am trying to use the pde toolbox. I want to compute the eigenvalues of a rectangle 0.1 by 0,2 meters. I get either 4e-14 with the app or 7e-14 with the command line. Both are different from the analytical solution. what am I doing wrong
By default, the PDE App gives zero Dirichlet boundary conditions, while the command line gives g = 0 Neumann conditions. So I wo...

8 years ago | 0

| accepted

Answered
How to understand if my optimization getting stuck in local optima
Your objective function or nonlinear constraints might be nonsmooth, or at least very sharply curved, because the first-order op...

8 years ago | 0

| accepted

Answered
Matlab Fitness Function Genetic Algorithm Error
Your |ga| call is not correct: ga(FitFunc,20,[],[],[],[],[],xL,xU,options2); It should be ga(FitFunc,20,[],[],[],[]...

8 years ago | 3

| accepted

Answered
Distance between 2 surfaces along surface normal direction
You could just perform a constrained minimization. Have one endpoint constrained to be in one region, the other endpoint on the ...

8 years ago | 0

Answered
Contraining the output of ga
Since |OLS_val| is calculated in your objective function, you can have your objective function return anything you want. Stick a...

8 years ago | 0

Answered
meaning of the given genetic algorithm non linear integer problem plot?
See <https://www.mathworks.com/matlabcentral/answers/350346-ga-optimisation-the-final-output-solution-violate-the-constraints th...

8 years ago | 0

Answered
ANN supported optimization with GA
It sounds like your "inputs" are either integer-valued or categorical, because you say that "...There are like one million possi...

8 years ago | 0

| accepted

Answered
FSOLVE seems to find complex roots correctly (although it shouldn't)
The description of when |fsolve| works with complex functions is in <https://www.mathworks.com/help/optim/ug/complex-numbers-in-...

8 years ago | 2

| accepted

Answered
Parallel calculations on matlab
As documented, <https://www.mathworks.com/help/distcomp/nested-parfor-loops-and-for-loops.html nested |parfor| loops do not run ...

8 years ago | 1

| accepted

Answered
problem in using fmincon
I cannot help you use an external software package better. But I can point you to documentation on <https://www.mathworks.com/he...

8 years ago | 2

Answered
GA Optimisation, the final output solution violate the constraints.
You are probably exceeding the limits of what |ga| can do. You have a large constrained nonlinear problem with integer constrain...

8 years ago | 1

| accepted

Answered
What is the limit of hessian() and gradient() in MATLAB?
I believe that you might be running into issues with *symbolic* variables as opposed to standard MATLAB double-precision variabl...

8 years ago | 0

Answered
Multiobjective function Minimization/Maximization
All optimization solvers attempt to minimize. To maximize an objective, <https://www.mathworks.com/help/gads/maximizing-vs-minim...

8 years ago | 1

Answered
how to create functions to use with OPTIMIZATION toolbox
I suggest that you read the <https://www.mathworks.com/help/optim/ug/example-nonlinear-constrained-minimization.html Getting Sta...

8 years ago | 0

Answered
Is is that you can only add no more than two linear constraints when using fmincon for optimization
There is no limit to the number of nonlinear constraints you can have. See <https://www.mathworks.com/help/optim/ug/nonlinear-co...

8 years ago | 0

Answered
How do I specify a specific time in my plot?
Just one quick thought before I answer: don't use |line| as a variable name, as it is the name of a built-in function. It see...

8 years ago | 0

| accepted

Answered
Simulated annealing on a 3D matrix data set instead of a mathematical function?
I don't know why you think that simulated annealing is the way to solve your problem, because I think that it is a slow, ineffic...

8 years ago | 0

Answered
Matlab genetic algorithm plotobjective error
|plotobjective| is for functions of two variables only, not for functions of 48 variables. It is not easy to plot a function of ...

8 years ago | 0

| accepted

Answered
Problem using lsqnonlin with nlparci toolbox
You can give the outputs of |lsqnonlin| any names you like, but calling the third output "jacobian" doesn't mean that it returns...

8 years ago | 0

| accepted

Answered
Can intlinprog optimize a custom function?
Don't give bounds by linear inequalities. Use the |lb| (and |ub|) arguments instead: lb = zeros(25,1); x = ga(@OtimizaKa...

8 years ago | 0

| accepted

Answered
Constrained Optimization, a function that returns a vector?
What does minimizing a vector mean? it doesn't mean anything mathematically. You cannot minimize a vector. The equation in yo...

8 years ago | 0

| accepted

Answered
Parameter estimation with lsqcurvefit and ODE45
You might be getting bit by <https://www.mathworks.com/help/optim/ug/optimizing-a-simulation-or-ordinary-differential-equation.h...

8 years ago | 0

Answered
optimization using GA in matlab
<https://www.mathworks.com/help/gads/write-objective-function.html Define your objective function for maximizing>. Then give <ht...

8 years ago | 0

Answered
Having problems creating inequality constraints for genetic algorithm
You need to represent these nonconvex constraints either as nonlinear constraints OR reformulate your problem to have 2^6 differ...

8 years ago | 0

Load more