Answered
How can I Optimize a multivariable function with Least Square method?
There are several MATLAB functions for nonlinear data fitting, such as <http://www.mathworks.com/help/optim/ug/lsqcurvefit.html ...

11 years ago | 0

Answered
Unable to replace bintprog by intlinprog
From your error message it seems that |h_GetTracks| has two mistakes on line 278: x = intlinprog(-costFunction,constraintMat...

11 years ago | 0

Answered
how can i code in matlab to find the optimal parameter of function
If you have Optimization Toolbox, this looks like a job for |<http://www.mathworks.com/help/optim/ug/fmincon.html fmincon>|. ...

11 years ago | 0

Answered
Is it possible to use a matrix as a decision variable for GA?
All you have to do is take your matrix of decision variables and reshape it to a row vector for use in GA. For example, if |x0| ...

11 years ago | 2

| accepted

Answered
How to compute the hessian matrix, when I'm using a Nelder-Mead maximum optimization of a function
I am not aware of anything in base MATLAB, but there is at least one <http://www.mathworks.com/matlabcentral/fileexchange/13490-...

11 years ago | 0

Answered
How can I change the convergence condition in linprog?
There are different approaches depending on which MATLAB version you are running. The reason for the slight inaccuracy is that t...

11 years ago | 0

Answered
in every iteration of ga i wanna get the values generated by vector x(1), x(2) to get the optimized value?
If you want to constraint your parameters to be positive, include <http://www.mathworks.com/help/optim/ug/writing-constraints.ht...

11 years ago | 0

Answered
Exporting "optimresults" after running linprog
In your output function, check the value of the <http://www.mathworks.com/help/optim/ug/optimization-options-reference.html#f114...

11 years ago | 0

Answered
fgoalattain Optimization problem - objective function variables do not change
It is hard to read your code. Please tag appropriate portions of your question with the |{} Code| button. But, if I understan...

11 years ago | 0

Answered
How to speed up fmincon when there are too many variables? How many variables can fmincon handle at most?
Since you are able to provide the gradients of all your functions, perhaps you can also provide Hessians. If so, use the |interi...

11 years ago | 0

Answered
genetic algorithm coding help error no enough input arguments?
In addition to what Geoff said, do NOT use your nonlinear constraint function. It appears that you are trying to enforce bounds ...

11 years ago | 0

| accepted

Answered
I want to write code for convex optimization given in the image below.I wrote some code.but did not work.Expecting help?
Without reading your problem in detail, it is clear that you are calling |fmincon| incorrectly. <http://www.mathworks.com/help/o...

11 years ago | 0

Answered
Intlinprog does not retun integer solution
Without seeing your |intlinprog| call, I can only guess that you neglected to include an |intcon| vector of the requisite length...

11 years ago | 1

Answered
Why this error "Too many input arguments" are shown in Optimization toolbox while using gamultiobj solver??
Unfortunately, |gamultiobj| does not handle integer constraints. Is there any way you can convert your objective functions to...

11 years ago | 0

Answered
genetic algorithm Mixed Integer Optimization linear vs nonlinear constraint
See the documentation on <http://www.mathworks.com/help/gads/mixed-integer-optimization.html mixed integer optimization>. This i...

11 years ago | 0

| accepted

Answered
clarifications regarding bounds optimization using genetic algorithm
Do not use a nonlinear inequality constraint to represent bounds. See the <http://www.mathworks.com/help/optim/ug/writing-constr...

11 years ago | 0

Answered
how Can I find the minimum value of my functions by fzero?
|fzero| is not a minimizer. It finds a point where the function changes sign. So it is usually used to find a point where a func...

11 years ago | 0

Answered
Linear Program through (FminCon,Ga,Linprog)
I have no idea what your problem is. There are a lot of examples that use nonlinear constraints, including <http://www.mathworks...

11 years ago | 1

| accepted

Answered
optimize three parameters using genetic algorithm
I suggest that you look at an <http://www.mathworks.com/help/gads/computing-objective-functions.html#bsdbxh4 introductory exampl...

11 years ago | 0

Answered
How to use fmincon effctively to calculate time-changing control inputs?
I am sorry that you did not seem satisfied by the answers to <http://www.mathworks.com/matlabcentral/answers/195484-how-to-const...

11 years ago | 0

Answered
How to constrain a vector when using fmincon?
I think that you need to do two things: # Decide how many points on the ODE solution that you want to constrain # Use the do...

11 years ago | 1

Answered
How to use fmincon to optimize two control vectors of a function?
Perhaps <http://www.mathworks.com/matlabcentral/answers/195236-how-to-write-fmincon-when-i-have-two-to-be-optimized-variables th...

11 years ago | 2

Answered
intlinprog stuck on Optimal objective value
You have a lot of variables. This kind of problem can take a long time. Did you leave the 'Display' option set at its default |'...

11 years ago | 3

| accepted

Answered
How to write Fmincon when I have two "to be optimized variables"?
<http://www.mathworks.com/help/optim/ug/writing-objective-functions.html#brhkghv-4 As the documentation clearly states>, |fminco...

11 years ago | 2

| accepted

Answered
Taking discrete values from a given set using genetic algorithm
Take a look at <http://www.mathworks.com/help/gads/solving-a-mixed-integer-engineering-design-problem-using-the-genetic-algorith...

11 years ago | 0

Answered
Using fmincon on a flat surface (solver stopped prematurely)
We might understand what is going on better if you would give the exact message that fmincon issues, and perhaps show us your ex...

11 years ago | 0

Answered
error message: DOUBLE cannot convert the input expression into a double array. If the input expression contains a symbolic variable, use VPA.
It would be much easier to read your code if you would use the |{} Code| button to format your code. |fminsearch| expects a f...

11 years ago | 0

| accepted

Answered
nonlinear constrained optimization using simulated annealing
The only way to do this using SA is to write your own SA solver. You would do much better to use |patternsearch|. In fact, |p...

11 years ago | 0

| accepted

Answered
Not enough inputs Genetic Algorithm
You didn't show us your call to ga, but the way you are supposed to call a <http://www.mathworks.com/help/optim/ug/passing-extra...

11 years ago | 0

| accepted

Answered
How does fzero determine its tolerance?
The meaning of |TolX| is <http://www.mathworks.com/help/matlab/math/setting-options.html#bt00l89-1 explained here>. If you are c...

11 years ago | 2

| accepted

Load more