Answered
About termination of genetic algorithm
ga would normally not exit until at least 50 generations. Therefore, either you have nonlinear constraints, or your options are ...

14 years ago | 0

| accepted

Answered
passing extra params to fmincon: anonymous function vs old method
The error is in this line of code: myfun = @(k)funObj(kSearch,x0,ti,tP); funObj does not have a variable k, so no matter ...

14 years ago | 0

| accepted

Answered
Discrete optimization with Genetic Algorithm - help
<http://www.mathworks.com/help/toolbox/gads/bs1cibj.html The documentation> deals with nonlinear inequality constraints. <http:/...

14 years ago | 1

| accepted

Answered
Discrete optimization with Genetic Algorithm
<http://www.mathworks.com/help/toolbox/gads/bs1cibj.html Yes.> Alan Weiss MATLAB mathematical toolbox documentation

14 years ago | 1

| accepted

Answered
Definition of Objective function in fmincon when it's not an analytic function
You have some function that evaluates the objective, right? Maybe an interpolation as in <http://www.mathworks.com/products/glob...

14 years ago | 1

| accepted

Answered
[Global Optimization Toolbox] How does nonlinear constraint influence the population number in GA?
The population size does not change with the existence of nonlinear constraints, but the algorithm does. Look at the penultimate...

14 years ago | 0

Answered
[Optimization Tool] Parallelization not working
<http://www.mathworks.com/help/toolbox/optim/ug/briutum.html The documentation> states that accessing external files is problema...

14 years ago | 0

Answered
Help in defining fmincon fucntion - Optimization Toolbox
To expand upon Walter's answer, use lsqnonlin instead of fmincon. Alan Weiss MATLAB mathematical toolbox documentation

14 years ago | 0

Answered
"nonlincon" part of the "fmincon" function in the optimization toolbox
You will probably be happier in the long run if you include your extra variables in a function handle or nested function rather ...

14 years ago | 1

Answered
Optimizing/Minimizing multivariant equation with fminunc function
I suggest you look at the <http://www.mathworks.com/help/toolbox/optim/ug/brg0p3g-1.html Getting Started> documentation for Opti...

14 years ago | 0

Answered
ga output more solutions
You can report the fitness values at any number of points that GA examined by using an <http://www.mathworks.com/help/toolbox/ga...

14 years ago | 0

Answered
Genetic Algorithms (Error is too big)
If you have GA, then you also have PATTERNSEARCH. I recommend PATTERNSEARCH as a more reliable, faster algorithm. The only di...

14 years ago | 0

Answered
Using fmincon for optimization, when having too many variables
You have to write a function that takes one input, typically a vector called x, and returns the objective function evaluated at ...

14 years ago | 3

| accepted

Answered
Solving a Bilinear Optimization Problem
I am not sure that I understand your notation, such as \|| . \||_F. But if you can write your objective function as a sum of squ...

14 years ago | 0

| accepted

Answered
Need help for solving an Optimization problem with Nonlinear constraints
It seems to me that your Y vector is a deterministic function of your V vector, and that you minimize over a set of V vectors. ...

14 years ago | 0

Answered
how to set proper constraints for Nonlinear Optimisation solvers
Thank you for the question. Currently, this topic is not documented properly. I will work on it. In fact, if you pass matrix ...

14 years ago | 0

| accepted

Answered
gamultiobj population type only integers
The answer, unfortunately, is that you cannot restrict variables in gamultiobj to be integer-valued. There is a possibility t...

14 years ago | 0

| accepted

Answered
How I can eliminate an error concerning the unction FSOLVE??more details below
fsolve expects its objective function to take a single vector, say x, and return a vector F(x). Your objective function myfun ta...

14 years ago | 0

Answered
fmincon pump scheduling optimization problem
It is possible that your simulation software does not give you sufficiently accurate estimates of the gradient when fmincon pass...

14 years ago | 0

Answered
problem with multiobjective optimization
There are several potential issues. When you change your problem you probably rerun gamultiobj from random points. You can give ...

14 years ago | 0

Answered
Is Constrained Nonlinear Optimization available in complex space?
As stated in the documentation, to use complex numbers in Optimization Toolbox, take the real and imaginary parts separately, so...

14 years ago | 0

| accepted

Answered
How can the least square optimizer LSQNONLIN be well conditiond?
I suggest you use the lsqnonlin trust-region-reflective algorithm. As explained <http://www.mathworks.com/help/toolbox/optim/ug/...

14 years ago | 0

| accepted

Answered
Restricting GA to consider only integer values for the output
To attempt integer programming in GA using versions of MATLAB prior to R2011b, take a look at <http://www.mathworks.com/support/...

14 years ago | 0

Answered
A simple example in GA which is not working for me!! Anybody can answer, just have a look!!
I think this is a linear programming problem, and you would do better to use linprog to solve it. However, if you are just tr...

14 years ago | 0

Answered
Genetic algorithm and system of nonlinear ODE
I don't understand your question. Are the y(i) supposed to be the derivatives of x(i)? If not, where is the differential equatio...

14 years ago | 0

Answered
facing problem in optimization using GA
Your code accepts arguments p, q, and a, and then overwrites them with different values (zeros(nn,1)). So I am not sure what you...

14 years ago | 0

Answered
fmincon function not working well
fmincon is a gradient-based optimization function. It estimates gradients of your objective and constraints by finite difference...

14 years ago | 0

Answered
Is fmincon deterministic? If so, why am I getting different results?
fmincon is deterministic. I suspect that your objective or constraint functions are not, or that somewhere in your code you have...

14 years ago | 1

| accepted

Answered
What does the exitflag "Change in X too small" imply for the optimum?
With nonsmooth constraint functions you will not be able to get an exit flag of 1. So in what way are you dissatisfied with your...

14 years ago | 0

Answered
fsolve with independent functions
I believe that your best course of action is to do the loop, one-dimensional problems. When fsolve addresses an N-dimensional pr...

14 years ago | 0

| accepted

Load more