Answered
How can I minimize an objective function using lsqnonlin? I am minimizing the difference between theoretical S parameter and measured S-parameter to extract the dielectric constant?
I am surprised that this code works at all, because I do not see where |refl_cmplx| is defined. Even if that is not a real is...

9 years ago | 0

Answered
How can I minimize an objective function using lsqnonlin? I am minimizing the difference between theoretical S parameter and measured S-parameter to extract the dielectric constant?
Perhaps your function has multiple local minima. Perhaps your function |F| is not specified correctly (is it a function handle?)...

9 years ago | 0

| accepted

Answered
How to make output function for multiobjective genetic algorithm optimisation tool?
|ga| custom output functions are described <http://www.mathworks.com/help/gads/genetic-algorithm-options.html#f17837 here>. The ...

9 years ago | 0

Answered
specify f coefficient in PDE
Depending on your MATLAB version, there are different values for the |f| coefficient. For recent toolbox versions, <http://www.m...

9 years ago | 0

Answered
How to use Genetic Algorithm for maximisation process?
<http://www.mathworks.com/help/optim/ug/maximizing-an-objective.html Check out the documentation on that issue>. Alan Weiss ...

9 years ago | 0

Answered
Can anybody tell me the reason why the scripts already given on MathWorks website for Pareto Front are not working? I have tried 3-4 scripts available on the website related to Pareto Front but none of them is working.
You may have an older version of MATLAB where |optimoptions| does not support |gamultiobj|. Instead, use |gaoptimset| to set opt...

9 years ago | 1

Answered
fmincon sufficient conditions ?
|fmincon| returns an exit flag of 1 when the <http://www.mathworks.com/help/optim/ug/first-order-optimality-measure.html first-o...

9 years ago | 0

Answered
Optimization tool Multi objective Genetic Algorithm
You didn't show us your call to |gamultiobj|, so we cannot check whether you correctly passed bounds to the solver. However, I c...

9 years ago | 0

| accepted

Answered
From where does the Genetic Algorithm take the values of variables in optimisation process?
<http://www.mathworks.com/help/gads/how-the-genetic-algorithm-works.html The genetic algorithm is described here>. The details o...

9 years ago | 0

| accepted

Answered
Optimization Tool, genetic algorithm
Sorry, Scott, your question is not clear to me. There are several things I do not understand: # Do you need to use the GUI? Y...

9 years ago | 0

Answered
Which solver can be used for a non linear curve fitting with some variables being constrained to integers?
If you really have the equation you gave as an example, then I would use x = x1 + x2 meaning just fit a continuous |x| va...

9 years ago | 0

| accepted

Answered
not enough input arguments error using fminunc
I think that instead of fminunc(@(m) myfun,x0,options) you should call fminunc(@myfun,x0,options) or fminunc(@...

9 years ago | 0

| accepted

Answered
Matlab limitation in fsolve using function input
I think that you need to replace your line [x,fval] = fsolve(@torder1,x0,options,T) with [x,fval] = fsolve(@(x)torder...

9 years ago | 0

Answered
any tips on speeding up a ga optimization
My first recommendation would be to not use |ga| unless your problem has integer constraints and a nonlinear objective or constr...

9 years ago | 2

Answered
How lower bound and upper bound value can be specify in fgoalattain
|fgoalattain| is not a discrete-variable solver, it solves only for continuous variables. However, with only 13 variables, it...

9 years ago | 0

| accepted

Answered
Why does my fitness functions give me just a Pareto Set of 7 when the population is 20?
All that means is that of the 20 members of your population, only 7 were on the Pareto front. If you want more members on the fr...

9 years ago | 0

| accepted

Answered
Genetic Algorithm with array as decision variable
I see at least two errors in your code: # You set |x = zeros(1,n)| within |main_function|. Don't do that! Allow your function...

9 years ago | 2

| accepted

Answered
how to stop optimization when the function value reach 0?
Use an <http://www.mathworks.com/help/gads/pattern-search-options.html#f14623 output function> and set |stop = true| when the fu...

9 years ago | 0

| accepted

Answered
Does fmincon do any scaling?
What makes you think that |fmincon| did not solve the problem? The exit message you report indicates that it found a solution. P...

9 years ago | 0

Answered
How to added a “if statement” to constraints of matlab linear minimization
I would solve three problems. For one, put bounds |0 <= x3 <= 20| and set |x4 = 2*x3|. For another, put bounds |20 <= x3 <= 30| ...

9 years ago | 1

Answered
Genetic Algorithm with Array as variable
All you have to do is change your array to a row vector, something like this: input = x(:)'; Here |x| represents your arr...

9 years ago | 2

| accepted

Answered
Problem with optimization using fminunc
Your options make no sense to me. Remove all your options and I suspect that your problems will vanish. Alan Weiss MATLAB ...

9 years ago | 0

Answered
Genetic Algorithm Tool Question.
This is known as multiobjective optimization, because you have three numbers that you are trying to minimize. Obviously, you can...

9 years ago | 1

| accepted

Answered
hii, I am getting the following error each time i use fmnicon function. Can anybody tell me that what does it mean and how it can be removed?
I think that you need to debug your |clutch| function. Try the following: f = clutch(u0) I bet you'll get an error. Al...

9 years ago | 0

Answered
What type of optimization do we need?
This is indeed a challenging problem. I worked on a related optics problem involving MEMS a while back, and found that it was cr...

9 years ago | 0

Answered
How to make PDE toolbox continue running for all iterations?
I think that you would do yourself a favor by learning to use command-line functions instead of relying on the PDE app. Dependin...

9 years ago | 0

| accepted

Answered
Prevent save dialogue to appear when running pde toolbox in loop
I am sorry, but I do not understand exactly what you are doing, so cannot help you without more information. It sounds as if you...

9 years ago | 0

Answered
How to interpret the output from GobalSearch and MultiStart
The <http://www.mathworks.com/help/gads/how-globalsearch-and-multistart-work.html details of the |MultiStart| and |GlobalSearch|...

9 years ago | 0

| accepted

Answered
Will "optimtool" be replaced in the future?
We cannot comment on future features. However, we would be interested in hearing what you use the Optimization app for. * Set...

9 years ago | 0

Answered
how to calculate the area of each triangle of the mesh in the pdetool box?
You can use the |<http://www.mathworks.com/help/pde/ug/pdetrg.html pdetrg>| function on the |p,e,t| representation of the mesh. ...

9 years ago | 0

Load more