Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

14 years ago

Answered
Same functionality as Excel Solver to set objective to a value
I am not sure I understand your question. If you have a single function of a single variable, you can use fzero to solve for f(x...

14 years ago | 0

| accepted

Answered
Genetic Algorithm - Speed of Parallel vs Vectorized?
There is no way to know which is faster. It depends on the time it takes to compute the fitness function, and the time it takes ...

14 years ago | 0

Answered
regarding ga tool
This sounds like an integer programming problem. Each variable is bounded below by 0, above by 1, and the sum is fixed at 5. ...

14 years ago | 0

Answered
Genetic Algorithm takes sooooo long time, number of function evaluation huge
Nonlinear constraints are difficult for the solver to handle. It is not a surprise that it takes so many iterations with nonline...

14 years ago | 0

Answered
Genetic algorithm: child out of constraints
If your problem is that the inequalities are not being strictly satisfied, but are being satisfied within sqrt(TolCon), then I a...

14 years ago | 0

| accepted

Answered
Testing Toolboxes (MATLAB Optimization Toolbox)
f = [-9; -5; -6; -4]; A = [6 3 5 2; 0 0 1 1; -1 0 1 0; 0 -1 0 1]; b = [9; 1; 0; 0]; x = bintprog(f,A,b) Optimiz...

14 years ago | 0

Answered
Display constraint gradient from fmincon
I believe you will have to write your own routine to calculate the gradient you want, and include it in your output function. It...

14 years ago | 0

Answered
Linprog error - The number of rows in A must be the same as the number of elements of b.
After you enter your code, but before you call the last line x = linprog(f,A,b,Aeq,beq) I suggeset that you enter size(A)...

14 years ago | 0

| accepted

Answered
HELP in Genetic Algorithm for using integer constraints and linear constraints
rastriginsfcn.m ships with Global Optimization Toolbox (you don't have to write a separate function). See <http://www.mathworks...

14 years ago | 2

Answered
Optimization running. Error running optimization. Too many input arguments.
I am not sure I understand what you mean when you say "I could not create "options" in this function." GA passes the existing op...

14 years ago | 0

Answered
Having problems with my function code iterating an initial guess (optimization)
Sorry, I do not understand what you are asking. Perhaps you can include your entire function call, such as x = fzero(fcn1...

14 years ago | 0

Answered
Problem with plotting FMINCON results
When you "add the following line" you overwrite all your previous options, and reset them to their default values. To keep your ...

14 years ago | 1

| accepted

Answered
Is lotsizing problem solved using optimization tool - GA
To incorporate data, use the technique described here: <http://www.mathworks.com/help/toolbox/optim/ug/brhkghv-7.html> To us...

14 years ago | 0

Answered
Multiple Non linear constraints for fmincon optimization
The documentation addresses your problem: <http://www.mathworks.com/help/toolbox/optim/ug/brhkghv-11.html#brhkghv-16> Alan W...

14 years ago | 1

Answered
Optimization running. Error running optimization. Too many input arguments.
According to the documentation <http://www.mathworks.com/help/toolbox/gads/f6174dfi10.html#f14223> the syntax for a creation f...

14 years ago | 0

| accepted

Answered
Can I integrate my optimization algorithm in OPTIM TOOL of matlab?
Sorry, as I posted here: <http://www.mathworks.com/matlabcentral/answers/35834-adding-my-own-solver-to-optimtool-guis> there i...

14 years ago | 2

Answered
Writing custom plot functions in optimisation
As explained in <http://www.mathworks.com/help/toolbox/gads/bsc59_4.html#bsk8q3m>, the syntax for a plot function is the same as...

14 years ago | 0

| accepted

Answered
Adding my own solver to optimtool GUI
I believe that it is not possible to do this. Sorry. Alan Weiss MATLAB mathematical toolbox documentation

14 years ago | 2

| accepted

Answered
Parallel Optimization with multistart and fmincon
parfor has the limitation that inner parfor loops are not run in parallel, only the outermost parfor loop is run in parallel. Th...

14 years ago | 1

Answered
using explcit parameters in fsolve gives error, how to solve this?
Your code shows many lines devoted to creating the function handle F. Then you don't seem to use F in your fsolve function call....

14 years ago | 1

| accepted

Answered
Using patternsearch to calculate 4 variables - Optimisation toolbox
Because of your very tight bounds, I suspect that your TolX and TolFun settings are stopping things too early. I suggest that yo...

14 years ago | 1

| accepted

Answered
Multiple outputs from FMINSEARCH function
I believe that Loren Shure's "memoize" post could be adapted to your problem: <http://blogs.mathworks.com/loren/2006/02/08/use-...

14 years ago | 0

Answered
Custom Plot Functions in Optimization Toolbox
This is a function specifically designed for patternsearch, which has a different plot function syntax. For the correct syntax o...

14 years ago | 1

Answered
optimization slow convergence
It is possible that you are trying to minimize a sum of squares of differences between your model and the observed response. ...

14 years ago | 0

Answered
Selecting the correct solver for minimization
I'm not sure what your decision variables are, and what variables are outside your control. Perhaps you can use lsqnonlin. <htt...

14 years ago | 0

Answered
Constraint definition among the variables for Genetic Algorithm (GA) Optimization
The syntax for gamultiobj includes linear inequality constraints: X = gamultiobj(FITNESSFCN,NVARS,A,b) If v is your vector of ...

14 years ago | 2

Answered
Pb Genetic algorithm
There is a thread on CSSM addressing this issue: http://www.mathworks.com/matlabcentral/newsreader/view_thread/311708#849624 ...

15 years ago | 0

Answered
Unconstrained Optimization with Additional Parameters
I assume that your line grad = gradient of y; is not intended to be taken literally, but you are just saving the space ...

15 years ago | 0

Answered
Which optimization function and which algorithm do I use?
It is possible that fmincon is not moving because your objective function is locally flat, or the constraints are. You might wan...

15 years ago | 0

Load more