Respondida
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...

casi 9 años hace | 1

Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 2

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 0

| aceptada

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

casi 9 años hace | 3

| aceptada

Respondida
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 ...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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-...

casi 9 años hace | 2

| aceptada

Respondida
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 ...

casi 9 años hace | 1

| aceptada

Respondida
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...

casi 9 años hace | 2

Respondida
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...

casi 9 años hace | 1

| aceptada

Respondida
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...

casi 9 años hace | 0

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

casi 9 años hace | 1

Respondida
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...

alrededor de 9 años hace | 0

Respondida
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...

alrededor de 9 años hace | 0

Respondida
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...

alrededor de 9 años hace | 0

| aceptada

Respondida
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...

alrededor de 9 años hace | 0

Respondida
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 ...

alrededor de 9 años hace | 0

| aceptada

Respondida
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...

alrededor de 9 años hace | 0

| aceptada

Respondida
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...

alrededor de 9 años hace | 0

| aceptada

Respondida
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...

alrededor de 9 años hace | 0

| aceptada

Respondida
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...

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 0

Respondida
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...

alrededor de 9 años hace | 0

Cargar más