Answered
How to remove the next output message after Fsolve iteration:Optimization terminated: first-order optimality is less than options.TolFun.
Pass opts, not 'opts'. fsolve(...,xads,opts) You are passing a string, not the options structure. Alan Weiss MATLAB...

13 years ago | 0

Answered
Gamultiobj constraint - Is possible to limit the objective functions?
Sorry, there is no standard way of limiting the value of an objective. Usually, this can be accomplished via a nonlinear constra...

13 years ago | 0

Answered
How to optimize a function ?
Maybe <http://www.mathworks.com/help/optim/examples/large-scale-constrained-linear-least-squares.html a documentation example> i...

13 years ago | 0

Answered
How to display the value of variable X
You can write anything you want as a plot function. Modify the function gaplotbestindiv.m to display the values of the vector (b...

13 years ago | 0

Answered
Constrained,free time optimal control in MATLAB
Perhaps you can include time as another variable in your problem, and ask fmincon to minimize over it, too. If x(1),..,x(n) are ...

13 years ago | 0

| accepted

Answered
How can I solve a min problem for integral?
Let's reformulate your problem as numerical, not symbolic, because you are going to want a numeric answer. Also, let's call y...

13 years ago | 2

Answered
Restricting members to choose in population selection
It sounds to me as if you want to restrict your population to be multiples of 5, from 5 to 400. You can do this by restricting y...

13 years ago | 0

Answered
gamultiobj - Multiobjective optimization - "Could not find a feasible initial point"
I answered this question <http://www.mathworks.com/matlabcentral/newsreader/view_thread/328130#901802 here>. Basically, if gamul...

13 years ago | 0

Answered
An issue related to the starting points in MultiStart
I suggest you try generating the random start points using the list method: pts = list(rs,problem) Are all three points i...

13 years ago | 0

Answered
Problem with Genetic Algorithm
It is possible that you aren't setting bounds on all components. See <http://www.mathworks.com/help/optim/ug/writing-constraints...

13 years ago | 0

| accepted

Answered
using genetic algorithm for optimization
Apparently there is an error in your fitness function. If it isn't too long, please post it so we can see what might be the prob...

13 years ago | 0

| accepted

Answered
optimize fsolve for diffusion and reaction in a spherical particle
It is difficult to know what you are looking for. Your code runs, so it is at least sensible to MATLAB. And, generally speaking,...

13 years ago | 0

Answered
Constraints on the genes of a chromosome of multi-objective Genetic algorithm (gamultiobj)
You need to write this as a linear inequality of the form A*x <= b If I understand you correctly, sum(reshape(x,6,[]) is ...

13 years ago | 1

Answered
Linear equalities in gamultiobj
Yes, you can have as many linear equality constraints as you like. The syntax is exactly the same as for linear INequality const...

13 years ago | 0

Answered
using discrete values in the gamultiobj-function
Unfortunately, gamultiobj does not accept integer constraints. The only thing I can suggest is exhaustive search, or maybe ex...

13 years ago | 0

Answered
Constrained Variable Genetic Algorithm
It seems from your description that you want all the variables x1,...,xn to have integer values. If this is the case, and if you...

13 years ago | 0

| accepted

Answered
Spread and distance calculation in multi objective optimization
These quantities apply to multiobjective optimization using gamultiobj. There is a brief mention of the distance measure functio...

13 years ago | 0

| accepted

Answered
Parallel GA is Ignoring Time Limit?
Thanks for reporting this behavior. I believe I understand what is happening, and will consider either making a change in the do...

13 years ago | 2

| accepted

Answered
Error message running ga solver
I am afraid that I don't really understand what you are doing, but I will give a try. Your objective function always returns ...

13 years ago | 0

Answered
Multiobjective optimization - Creating new plot function
I think you have a misconception that can be quickly cleared up. Take a look at <http://www.mathworks.com/help/gads/creating-a-c...

13 years ago | 0

| accepted

Answered
GA code for optimizing three parameters with different interval limit
I'm sorry you are having trouble. it seems to me that you need to slow down, and learn the correct syntax for the various things...

13 years ago | 2

| accepted

Answered
Linear programming not working in earth Mover's distance
I am not sure what is going on here, but I suspect that the tolerances have been set to unreasonably low values. At iteration 23...

13 years ago | 0

| accepted

Answered
writing fmincon funtion in matlab
Check out the definition of the objective function <http://www.mathworks.com/help/optim/ug/lsqlin.html right at the top of the l...

13 years ago | 1

Answered
How to use nested function in main program as constraint for a Genetic Algorithm that optimizes the main?
If you are looking for information about how to pass parameters, see <http://www.mathworks.com/help/optim/ug/passing-extra-param...

13 years ago | 0

Answered
Does fsolve depend on the stability of the system?
If fsolve exited with an exitflag of 1, then the reported solution is a solution. You can verify it by putting it back into your...

13 years ago | 0

Answered
How to fit a nonlinear function with parameter-dependent constraint?
Why not take a logarithm? log y(x) = log(a(1)) + a(2)*log(C1/x) Have log(a(1)) and a(2) be the variables to find, you now...

13 years ago | 0

| accepted

Answered
Optimization of a linear function with range of variables
You can solve this kind of problem numerically using the linprog function in Optimization Toolbox. You can solve this kind of...

13 years ago | 1

| accepted

Answered
Best Approach for Optimisation using both doubles and integers as variables
If you have Global Optimization Toolbox R2011b or later, then mixed integer programming is a built-in feature. See the documenta...

13 years ago | 0

| accepted

Answered
What is maximum number of variable and constraint in quadprog() function
300 variables is not close to the maximum for most systems (the maximum is determined by your machine's memory capacity). <http:...

13 years ago | 0

| accepted

Answered
Can I edit and change the value of global variables inside the called functions?
This is similar to <http://www.mathworks.com/help/optim/ug/writing-constraints.html#btfdwb7 new documentation on evaluating an o...

13 years ago | 0

Load more