Answered
TimeLimit option in Patternsearch being ignored?
I am very sorry to say that you got bit by a bug. We will fix it as soon as we can. Here is the bug. |patternsearch| uses the...

10 years ago | 3

| accepted

Answered
Problem using fmincon to find a constrained minimum
The exit message does not indicate a problem; in fact, it indicates that |fmincon| arrived at a true local minimum. Alan Weis...

10 years ago | 0

Answered
Apparent contradiction in the behaviour of linprog
I do not understand it, but perhaps there is a weakness in the simplex algorithm implementation. I suggest that you use the |'du...

10 years ago | 0

Answered
Anyone knows whether is possible to perfome an optimization with Global Search using only integer inputs?
The answer is no. |GlobalSearch| uses |fmincon| as its local optimizer, and there is no way to restrict |fmincon| to integer val...

10 years ago | 0

| accepted

Answered
How can I determine (optimize) 4 constants or parameters for an equation with 4 variables in Matlab
If you have no constraints (limits on your variables), use <http://www.mathworks.com/help/matlab/ref/fminsearch.html fminsearch>...

10 years ago | 0

Answered
How to deliver the values got from the objective function to the non-linear constraint function when use the genetic algorithm?
If you can use <http://www.mathworks.com/help/gads/vectorizing-the-fitness-function.html vectorized objective and constraint fun...

10 years ago | 0

Answered
Can I use the matrix to the variable genetic algorithm?
Sorry, I do not understand your code or your question. If you are using Global Optimization toolbox, then your individuals must ...

10 years ago | 0

Answered
Parallel optimization with extra parameters (fmincon) using for loop and if then statements
At the very least you need to have an objective function that takes exactly one input argument. Perhaps fun = @(x)objfun(x,...

10 years ago | 0

Answered
How to save a variable in optimization fitness or constrain function ?
You can use an <http://www.mathworks.com/help/optim/ug/output-functions.html output function>. The example I linked shows how to...

10 years ago | 0

Answered
Hi , I'm new to matlab with fsolve and I get not enough input arguments everytime. Can someone please as what am I missing. Many Thanks
Perhaps you should pass your parameters as follows: p = parameter(); % get the parameters into the workspace [x,fval] = ...

10 years ago | 0

| accepted

Answered
nonlcon : Too many input arguments.
To quote <http://www.mathworks.com/help/optim/ug/writing-constraints.html#brhkghv-16 the documentation on nonlinear constraints>...

10 years ago | 0

| accepted

Answered
Nonlinear parabolic PDE with PDE toolbox
Generally, PDE Toolbox solves problems with <http://www.mathworks.com/help/pde/ug/types-of-pde-problems-you-can-solve.html secon...

10 years ago | 0

Answered
Ceiling function for objective function in MILP optimization
You can use an extra variable that keeps track of the number of segments of people/28. Here's how. Suppose that |n| is the nu...

10 years ago | 1

| accepted

Answered
Optimise scaling factor for 3D points
If I understand you correctly, the transformations you are willing to perform are rotation in 3-D space, and linear scaling in e...

10 years ago | 0

Answered
What is the largest number of DOFs that MATLAB pdetool can solve without running into memory issues?
In 2-D you can have a pretty large problem. Are you running into issues? In 3-D the solution can run into memory issues. It i...

10 years ago | 0

Answered
Does MATLAB pdetool support square and brick elements?
No, PDE Toolbox supports only triangles in 2-D and tetrahedral in 3-D. Alan Weiss MATLAB mathematical toolbox documentatio...

10 years ago | 0

Answered
lsqcurvefit does not change the initial values
Let us look at your function near your initial values. |(1-exp(-(x(1)*2.868+x(3)) = 1| because x(1) is of order 1000 and x(3)...

10 years ago | 0

Answered
How to set the values for the options in genetic algorithm toolbox?
Why do you need to set any options? Get the program to work, and then, if the default options don't give you a satisfactory solu...

10 years ago | 0

Answered
fminbnd not adjusting largest initial guess.
You might want to <http://www.mathworks.com/help/optim/ug/when-the-solver-fails.html#br53duy-1 rescale your problem>. This is no...

10 years ago | 0

Answered
Problem with unconstrained optimization fminunc 'quasi-newton'
If you want to examine the quality of the solution, <http://www.mathworks.com/help/optim/ug/when-the-solver-might-have-succeeded...

10 years ago | 0

Answered
ploting optimization of parameters from lsqcurvefit
You can use an <http://www.mathworks.com/help/optim/ug/optimization-options-reference.html#f11022 output function> to keep a his...

10 years ago | 0

Answered
Passing variable array in fmincon
You are doing well for just a day with MATLAB! All you need to do is set your objective function as the following function handl...

10 years ago | 0

Answered
genetic algorithm matlab minimization
Perhaps the <http://www.mathworks.com/help/gads/examples/constrained-minimization-using-the-genetic-algorithm.html constrained m...

10 years ago | 0

Answered
Multi-variable Fitness Function error using Optimization Tool
Global Optimization Toolbox solvers optimize functions of <http://www.mathworks.com/help/gads/computing-objective-functions.html...

10 years ago | 0

| accepted

Answered
fmincon optimization of airfoil, gradients
<http://www.mathworks.com/help/optim/ug/optimizing-a-simulation-or-ordinary-differential-equation.html The documentation on opti...

10 years ago | 0

Answered
How to optimize a multi-variate function based on a constraint?
Perhaps the Optimization Toolbox(TM) <http://www.mathworks.com/help/optim/ug/fmincon.html?searchHighlight=fmincon#busow0u-1 fmin...

10 years ago | 0

Answered
How to force intlinprog to give integer solution ?
I think that this must be a bug in your Optimization Toolbox(TM) version. Please report the issue to <http://www.mathworks.com/s...

10 years ago | 0

Answered
optimization function fmincon with a transfer function
You have to be able to evaluate the objective function for |fmincon| to work. So, how do you evaluate a transfer function as a f...

10 years ago | 0

Answered
Are my optimset conditions functioning correctly?
Unlike other optimization algorithms, |fminsearch| stops when it satisfies BOTH the |TolX| and |TolFun| tolerances, not when it ...

10 years ago | 0

Answered
fmincon and Active-set; symbolic math toolbox
You have to give problems in the form Optimization Toolbox(TM) solvers require. Please check the syntax for |<http://www.mathwor...

10 years ago | 0

| accepted

Load more