Answered
How can I find the Pareto optimal boundary for three sets of data?
I am not sure of the most efficient way to do this. However, in principle all you need to do is to compare the 3-D values pairwi...

11 years ago | 0

Answered
Help with setting up an optimization problem
If you need to pass the data, see <http://www.mathworks.com/help/optim/ug/passing-extra-parameters.html Pass Extra Parameters>. ...

11 years ago | 0

| accepted

Answered
Does fmincon satisfy the non linear and linear constraints at each step?
# No fmincon algorithm is guaranteed to satisfy nonlinear inequality constraints at intermediate iterations, only bound constrai...

11 years ago | 0

Answered
How to change this piece of code from GA to IntLinProg
intlinprog does not accept nonlinear constraints. Also, it accepts only linear objective functions. Alan Weiss MATLAB math...

11 years ago | 0

| accepted

Answered
Error in fmincon: infinite loop?
I suggest that you set iterative display instead of turning the display off, and I also suggest that you use the interior-point ...

11 years ago | 1

Answered
Something strange with the next population generation in GA.
Since you cannot provide code, there is no way for us to check what might be happening. All I can suggest is that you put <http:...

11 years ago | 0

| accepted

Answered
fmincon returns wrong length
What is your x0 input to fmincon? The returned solution x has the same size as x0. Alan Weiss MATLAB mathematical toolbox ...

11 years ago | 0

| accepted

Answered
Issue formatting MATLAB results output
I think that you misunderstand the result. The x variable is in your workspace after intlinprog finishes. It contains the result...

11 years ago | 0

| accepted

Answered
fmincon PI-controller of nonlinear System
You can include constraints on acceleration as nonlinear constraints. For example, if you want acceleration to be less than 5, y...

11 years ago | 0

| accepted

Answered
Error when using lsqnonlin
Your settings of TolFun and TolX don't make sense. They should not be smaller than 1e-14, and should probably be much larger. Se...

11 years ago | 0

Answered
How to make Integer (1 0) constraints in the gamultiobj. solver?
gamultiobj does not allow for integer constraints. Sorry. If you only have a few binary variables, say up to 20 or so, then I th...

11 years ago | 0

Answered
How does the ga in matlab give exitflag 1 before reaching the stall generation limit ?
Thank you for posting the options, GA call, and returned info. As you realize, having a nonlinear constraint function, even o...

11 years ago | 0

Answered
Display resnorm at each iteration of lsqcurvefit?
The residual is returned in the iterative display. For the trust-region-reflective algorithm (default), the heading is f(x). For...

11 years ago | 0

Answered
Show an expression on each iteration of the optimization
Write a function named Jurgenoutput consisting of the following: function stop = Jurgenoutput(z,optimValues,state) stop = ...

11 years ago | 2

| accepted

Answered
Matlab Optimization Toolbox value selection
If you want ALL your final variables to be exactly two decimals, you can use patternsearch as follows. * Set the ScaleMesh op...

11 years ago | 0

Answered
How does the ga in matlab give exitflag 1 before reaching the stall generation limit ?
I don't understand how you are seeing what you report. My reading of the GA code shows that it should give an exit flag of 0 whe...

11 years ago | 0

Answered
Minimizing a function with vector input
This sounds like a job for <http://www.mathworks.com/help/optim/ug/lsqnonlin.html lsqnonlin>. In general, for help choosing a...

11 years ago | 0

Answered
real coded genetic algorithm
<http://www.mathworks.com/help/gads/computing-objective-functions.html#brdvvgw The documentation> shows how to maximize instead ...

11 years ago | 0

Answered
Question about 2 output optimization
This sounds straightforward to solve in Optimization Toolbox. You have a nonlinear equality constraint (the value of the second ...

11 years ago | 3

| accepted

Answered
Setting Linear constraints GA
There is <http://www.mathworks.com/help/optim/ug/writing-constraints.html#btqvfel documentation about OR constraints here>. T...

11 years ago | 0

| accepted

Answered
patternsearch returns result violates equality constraint
It is not clear to me whether you are using the A, b arguments or the Aeq, beq arguments. The latter are for the equality constr...

11 years ago | 1

Answered
optimization procedure convergence and "norm of step"
Your problem seems to have stalled. You might want to use some of the suggestions in < Too Many Iterations or Function Evaluat...

11 years ago | 0

Answered
Tips to avoid genetic algorithms premature convergence
There is no option maxGenerations. Perhaps you mean Generations. If you set Generations to 10, then you should never have more t...

11 years ago | 0

Answered
How can I limit maximum value of yy axis of the gaplot fcn?
While you cannot do this so easily while the optimization is running, you can call ylim([10,100]) at the end of the optim...

11 years ago | 0

| accepted

Answered
how to tweak fmincon into yielding Global Minimum
I think that the following two lines are out of order: for i= 1:m f=0; The way you have it, f is reset for the first...

11 years ago | 1

Answered
get exitflag number of iterations and function evaluations and final value of the gradient vector of the objective function
If you are using the GUI (the Optimization app, as it is called these days) then after you get your solution choose <http://www....

11 years ago | 0

| accepted

Answered
Does line search in "fminunc" use the directional derivatives? And can this be turned off?
If you look at equation 6-14 in <http://www.mathworks.com/help/optim/ug/unconstrained-nonlinear-optimization-algorithms.html#brn...

11 years ago | 0

| accepted

Answered
Plotting x vector of fmincon
Use an <http://www.mathworks.com/help/optim/ug/output-functions.html output function> to save the values of x. There is more det...

11 years ago | 0

| accepted

Answered
How to solve these type of equation using matlab ?
In general I don't think that you can solve this kind of problem, because you have just 3 unknowns but you have 9 equations (one...

11 years ago | 0

Answered
fgoalattain with external code: x does not change
It is possible that you are running into an issue described in <http://www.mathworks.com/help/optim/ug/optimizing-a-simulation-o...

11 years ago | 1

| accepted

Load more