Answered
Optimization Tool and Variables
# I don't know how to do that. # Yes. Alan Weiss MATLAB mathematical toolbox documentation

11 years ago | 0

Answered
[fmincon] How should I write an objective function which links to other functions rather than directly using "x"
|x| should represent your decision variables. If you have a 3-by-2 matrix of values MW, and a 3-by-2 set of values |CF|, then th...

11 years ago | 0

| accepted

Answered
How to show value after every fsolve iteration?
You can set the |PlotFcns| option to |@optimplotx| to see the unknowns at each iteration. You can also write an <http://www.math...

11 years ago | 1

Answered
How to get the best idividuals values in each iteration point using GA tool in matlab??? Need your help
You can use an <http://www.mathworks.com/help/gads/genetic-algorithm-options.html#f17837 output function> to get the individuals...

11 years ago | 1

Answered
Intlinprog, how to make sure certain criteria must be met
It is very difficult to understand what you are seeking. You gave a complete problem specification. |intlinprog| gave you the co...

11 years ago | 0

Answered
global optimization ga with anonymous function
The error is clear: y=x(:,1).*sin(Time)+x(:,2); The sizes of the matrices *x(:,1)* and *Time* are not the same. You can u...

11 years ago | 0

Answered
how to work with Jacobian more efficiently with real dataset?
If I am not mistaken, you would do well to convert the symbolic Jacobian to a function handle or file using matlabFunction, and ...

11 years ago | 1

| accepted

Answered
Patter search optimization, not getting fittest solution
I suggest that you put finite bounds on each variable, |lb| and |ub|. Then start your optimization at several random initial poi...

11 years ago | 0

Answered
How to deal with '0' exitflag message in fmincon
<http://www.mathworks.com/help/optim/ug/when-the-solver-fails.html The documentation has suggestions> on what to do. Alan Wei...

11 years ago | 0

Answered
fmincon stoping criteria for simulation problem
It is possible that you are using the |'sqp'| algorithm. If so, I suggest that you use the |'interior-point'| algorithm. Also...

11 years ago | 0

Answered
Warning: Explicit solution could not be found
Instead of trying to solve the ODE analytically (I mean symbolically), I suggest that you solve it numerically using an <http://...

11 years ago | 0

Answered
problem finding minimum of residual for separable nonlinear least square using fminsearch
# fminbnd is not just for continuous functions. It should converge to something reasonable if you give it an initial interval wh...

11 years ago | 1

Answered
I have only non-linear eqality constraints
<http://www.mathworks.com/help/optim/ug/writing-constraints.html#brhkghv-16 As explained in the documentation>, Nonlinear con...

11 years ago | 1

Answered
maintaining monotonicity in an optimization problem
Firstly, I don't know the answer to your question off the top of my head, sorry. Secondly, I wonder if you can reformulate yo...

11 years ago | 0

Answered
how to make population pool generated as request in GA
I suggest that you help GA by providing a custom initial population. It is not difficult to generate an initial population that ...

11 years ago | 1

Answered
How to find a good reparametrization to move from a constraint optimization to an unconstrained one?
You can indeed incorporate this kind of nonlinear constraint into a constraint for |fmincon|. In fact, there is an <http://www.m...

11 years ago | 1

Answered
How to force the GA optimization for certain varibale values ??
Turn your problem into one of <http://www.mathworks.com/help/gads/mixed-integer-optimization.html Mixed Integer Optimization>. T...

11 years ago | 0

Answered
GA options stall vs tolerance
According to the documentation, "The algorithm stops if the average relative change in the best fitness function value over |Sta...

11 years ago | 0

| accepted

Answered
GA optimization problem, terminate before stall limit
You can set larger values for various stopping criteria, such as |Generations| or |StallGenLimit|. Or you could do yourself a fa...

11 years ago | 0

| accepted

Answered
Intermediate solutions in binary programming
You might be interested in using an output function to report intermediate results. See <http://www.mathworks.com/help/optim/ug/...

11 years ago | 0

Answered
Portfolio name object optimization
Looking at the <http://www.mathworks.com/help/finance/release-notes.html release notes>, it seems that the Portfolio object was ...

11 years ago | 0

Answered
Undefined function for 'regression'?
The <http://www.mathworks.com/help/nnet/ref/regression.html regression> function is from <http://www.mathworks.com/help/nnet/ind...

11 years ago | 0

| accepted

Answered
Can I use the "fit" function from the Curve Fitting toolbox to fit data to separately defined Matlab functions?
<http://www.mathworks.com/help/curvefit/custom-nonlinear-models.html The documentation says that you can fit custom models>. ...

11 years ago | 0

| accepted

Answered
Test step sizes and parameter scaling for LSQNONLIN (and the Levenberg Marquardt algorithm)
The initial perturbations are |lsqnonlin| attempting to estimate the Jacobian of the objective. You can control the gradient est...

11 years ago | 0

| accepted

Answered
Why feasibility always zero? what does it mean? thx
You can find the meaning of the |fmincon| <http://www.mathworks.com/help/optim/ug/iterative-display.html#f12710 iterative displa...

11 years ago | 2

Answered
'lsqnonlin' giving non-identical results from multiple trials considering same data and starting parameter values
|lsqnonlin| is indeed a deterministic solver. If you have the same data in, then you should get the same iterative steps. Since ...

11 years ago | 1

| accepted

Answered
Can anybody tell me how can I plot pareto front or 3 objective functions using multiobjective ga optimtoolbox
There is a <http://www.mathworks.com/matlabcentral/answers/110723-is-it-possible-to-generate-surface-pareto-front-for-3-objectiv...

11 years ago | 0

Answered
Where should I start if I want to apply genetic algorithms on some optimization problems?
You might want to look at an <http://www.mathworks.com/help/gads/examples/custom-data-type-optimization-using-the-genetic-algori...

11 years ago | 0

| accepted

Answered
How to plot the best individual fitness in GA?
You can use an output function or plot function to plot anything you want. See <http://www.mathworks.com/help/gads/creating-a-cu...

11 years ago | 0

| accepted

Answered
How to solve linear optimization problem with non linear conditions in MATLAB?
If you look in the <http://www.mathworks.com/help/optim/ug/choosing-a-solver.html#brhkghv-19 Optimization Decision Table>, when ...

11 years ago | 1

Load more