Answered
Question about fmincon including ODE
Take a look at <http://www.mathworks.com/help/gads/optimize-an-ode-in-parallel.html this example>. fmincon works just fine on th...

11 years ago | 0

Answered
how to use fminunc to get Hessian matrix
Your options don't make sense, and may indicate a deeper problem. <http://www.mathworks.com/help/optim/ug/fminunc.html#f854831 A...

11 years ago | 0

Answered
Matlab: Get the Hessian matrix using Multistart
MultiStart does not return the Hessian. But, if you really want the Hessian for computing confidence intervals, you shouldn't us...

11 years ago | 1

| accepted

Answered
How to use linprog only once for two different constraints
You can make your problem twice as big. Use twice as many variables x, twice as many variables in the lb and ub bounds, and twic...

11 years ago | 2

| accepted

Answered
how to use 'OutputFcn' in GA
GA will pass in options, state, and flag. You should pass those exact same options and state to the output function output argum...

11 years ago | 0

Answered
[HELP!!!!] Run fmincon repeatedly
You might want to consult the documentation on <http://www.mathworks.com/help/optim/ug/passing-extra-parameters.html passing ext...

11 years ago | 0

Answered
How to write linear constraint function in GA ?
Take a look at the <http://www.mathworks.com/help/optim/ug/writing-constraints.html#brhkghv-14 documentation on linear constrain...

11 years ago | 1

Answered
Minimization of a integration function
fun = @(x)integral(@(t)t.*(t-2),0,x); % plot it to see how it looks [themin,fval] = fmincon(fun,1,[],[],[],[],0,[]) % x lower...

11 years ago | 0

Answered
Scaling and centering a complicate equation
# If y is scalar, then you should be using fzero, not fsolve. # If you use fsolve, use optimset and not optiimoptions for your ...

11 years ago | 0

Answered
mixed-integer multi-objective optimization problem
I believe that the simplest way is to run through a sequence of multiobjective solutions for various fixed numbers of variables....

11 years ago | 0

Answered
Failure in user-supplied fitness function evaluation
Is penalty2 a function on your MATLAB path? Find out by issuing the command which -all penalty2 Alan Weiss MATLAB math...

12 years ago | 0

| accepted

Answered
optimalization of non linear function, Inputs must be a scalar and a square matrix
It would be easier to read your code if you would use the {}Code button to format all of it. And it would be easier to diagnose ...

12 years ago | 0

Answered
How can I impose the following optimization function with fmincon?
I have a few suggestions: * Don't load data in your objective and constraint functions. This can slow the solver tremendously...

12 years ago | 0

Answered
Fmincon Numerical Issue: Intermediate Iterations Violate Implicit Boundaries
At the initial point x0 are both your objective function and nonlinear constraint function real and finite? Do their derivatives...

12 years ago | 0

Answered
How to run evolutionary or other optimization with discrete set of inputs
You can use the genetic algorithm with <http://www.mathworks.com/help/gads/mixed-integer-optimization.html mixed integer optimiz...

12 years ago | 0

Answered
fmincon message: first order oplimality not below the tollerance but all constraints are satisfied. How to interpret this message?
Take a look at the <http://www.mathworks.com/help/optim/ug/when-the-solver-might-have-succeeded.html#br44i8w Local Minimum Possi...

12 years ago | 0

Answered
Turn off final Hessian calculation with fminunc or fmincon?
fmincon and fminunc calculate a Hessian approximation internally in order to solve problems. fmincon does not do any extra calcu...

12 years ago | 0

| accepted

Answered
Hot to add constraints to non decision variables in fmicon?
You can write any constraints you like as <http://www.mathworks.com/help/optim/ug/writing-constraints.html#brhkghv-16 nonlinear ...

12 years ago | 0

| accepted

Answered
GADS - Global OPtimization Problem License problem
Please <http://www.mathworks.com/support/contact_us/ contact technical support>. Alan Weiss MATLAB mathematical toolbox do...

12 years ago | 0

Answered
Maximize minimum optimization problem
It seems to me that your variable $\epsilon$ is unneeded. You simply want to find max(sum_t sum_i sum_j rates(i,j) x(t,i,j))...

12 years ago | 1

| accepted

Answered
Multiobjective optimization using gamultiobj
The constraint x(1) - x(2) >= 0 can be expressed as a <http://www.mathworks.com/help/optim/ug/writing-constraints.html#brhkghv-1...

12 years ago | 0

| accepted

Answered
Genetic Algorithm problem: initial population size
Did you give an initial population? Did it match the number of variables that you passed to GA? For more detailed help, pleas...

12 years ago | 0

Answered
Global minimum of multivariate function
If your quadratic function is positive definite, then you should be using lsqnonneg or quadprog to do the minimization, not fmin...

12 years ago | 0

Answered
How i can solve a large size problem through fmincon
You need to ensure that your options are set correctly. If you are providing the gradient of the objective function then I assum...

12 years ago | 0

Answered
Optimization Using FMINCON and ODE45
You might find this <http://www.mathworks.com/help/gads/optimize-an-ode-in-parallel.html example on optimizing an ODE> to be hel...

12 years ago | 0

| accepted

Answered
which optimization function/algorithm do i use?
I suggest that you do 20 optimizations, one for each value of geometry. The optimizations are over the variable x = [length, dis...

12 years ago | 0

Answered
force fsolve termination if not progressing
Use an <http://www.mathworks.com/help/optim/ug/optimization-options-reference.html#f11022 output function> to terminate the iter...

12 years ago | 1

| accepted

Answered
What is the difference between relative max(constraint violation) and Constraint violation?
Relative usually means relative to the value at the initial point x0. This means relative violation = violation / (1 + max(c...

12 years ago | 0

Answered
fmincon exitflag=0; MaxIter=3000; output.iterations=277
I am not sure what is going on here. Can you show us your options, and the way you called fmincon? I am also interested in seein...

12 years ago | 0

| accepted

Answered
Derivatives with respect to three variables using gradent function. I am getting zero as answer for all values of varables
The MATLAB gradient function calculates a numerical gradient <http://www.mathworks.com/help/matlab/ref/gradient.html as describe...

12 years ago | 0

Load more