Respondida
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 ...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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>|. ...

más de 11 años hace | 0

Respondida
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| ...

más de 11 años hace | 2

| aceptada

Respondida
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-...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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 ...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 1

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 1

| aceptada

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 1

Respondida
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...

más de 11 años hace | 2

Respondida
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 |'...

más de 11 años hace | 3

| aceptada

Respondida
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...

más de 11 años hace | 2

| aceptada

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 2

| aceptada

Cargar más