답변 있음
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...

거의 9년 전 | 1

답변 있음
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...

거의 9년 전 | 0

답변 있음
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...

거의 9년 전 | 0

답변 있음
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...

거의 9년 전 | 0

| 수락됨

답변 있음
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...

거의 9년 전 | 0

| 수락됨

답변 있음
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...

거의 9년 전 | 2

답변 있음
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...

거의 9년 전 | 0

| 수락됨

답변 있음
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...

거의 9년 전 | 0

| 수락됨

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

거의 9년 전 | 3

| 수락됨

답변 있음
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 ...

거의 9년 전 | 0

답변 있음
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...

거의 9년 전 | 0

답변 있음
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...

거의 9년 전 | 0

답변 있음
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...

거의 9년 전 | 0

| 수락됨

답변 있음
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-...

거의 9년 전 | 2

| 수락됨

답변 있음
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 ...

거의 9년 전 | 1

| 수락됨

답변 있음
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...

거의 9년 전 | 2

답변 있음
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...

거의 9년 전 | 1

| 수락됨

답변 있음
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...

거의 9년 전 | 0

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

거의 9년 전 | 1

답변 있음
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...

거의 9년 전 | 0

답변 있음
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...

거의 9년 전 | 0

답변 있음
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...

거의 9년 전 | 0

| 수락됨

답변 있음
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...

거의 9년 전 | 0

답변 있음
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 ...

거의 9년 전 | 0

| 수락됨

답변 있음
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...

거의 9년 전 | 0

| 수락됨

답변 있음
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...

거의 9년 전 | 0

| 수락됨

답변 있음
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...

거의 9년 전 | 0

| 수락됨

답변 있음
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...

거의 9년 전 | 0

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

거의 9년 전 | 0

답변 있음
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...

거의 9년 전 | 0

더 보기