Answered
How can I find the optimal point of two fitness functions
First of all, to maximize a fitness function, <http://www.mathworks.com/help/gads/computing-objective-functions.html#brdvvgw min...

10 years ago | 0

Answered
Problem with input integer variable indices in GA
Mixed integer programming for |ga| was introduced in <http://www.mathworks.com/help/gads/release-notes.html R2011b>. If your MAT...

10 years ago | 0

Answered
'Not enough input arguments' when I am defining a function
I think that you have a misunderstanding about what |intlinprog| does. It does NOT minimize nonlinear functions, such as a funct...

10 years ago | 0

Answered
fminunc optimisation values not always decreasing
I suggest that you <http://www.mathworks.com/help/optim/ug/when-the-solver-might-have-succeeded.html#br44i8w consult the documen...

10 years ago | 0

Answered
simulated annealing with constraints or shifting to genetic algorithm
I do not understand exactly what problem you are trying to solve. If it can be formulated as an integer programming problem, per...

10 years ago | 0

Answered
How can I solve MINLP optimization using ga?
Indeed, |ga| wants a single row vector of decision variables. This is easily arranged, as follows (or something similar): f...

10 years ago | 0

Answered
Combining two optimization functions
Without reading your code in detail, I can tell you that the syntax error is because you have defined |Objective| as a function ...

10 years ago | 0

Answered
Patternsearch polls out of mesh points
I am not sure why this is happening. I wonder if you can perform a bit more analysis on the points |patternsearch| visits, perha...

10 years ago | 0

Answered
error in fsolve solving nonlinear equations
Well, you gave |x0 = [-5;5]|, but your equation has components |x(1)| through |x(5)|. You either need to have equations involvin...

10 years ago | 1

| accepted

Answered
how to get numerical solution to system of non-linear equations?
If you have Optimization Toolbox, look into <http://www.mathworks.com/help/optim/systems-of-nonlinear-equations.html Systems of ...

10 years ago | 1

Answered
Maximize loglikelihood function GARCH(1,1)
You might just be running into a limitation of |fminsearch|, which is not a very robust solver. If you have access to Optimizati...

10 years ago | 0

Answered
How to create custom Mesh for PDE model
I think that you can create your own mesh as long as you stick with the following two rules: * Don't use a |PDEModel| to repr...

10 years ago | 0

Answered
What is a appropriate method to maximize function subject to nonlinear equality constraint? can we use fmincon?
Perhaps Walter's answer satisfied you, but it seems to me the question was how to maximize rather than minimize a function, subj...

10 years ago | 1

Answered
fminimax option iter not working
What are the number of elements in |x0|? If you have more than 49, then your function might never take even the first step becau...

10 years ago | 0

Answered
Optimization of a function with constraints containing 15 variables
Do not use nonlinear constraint functions to effect linear constraints and bounds. Your first five nonlinear inequality constrai...

10 years ago | 0

| accepted

Answered
what might lead to "constraint function returned Nan"?
|fmincon| tried to take a step, and when it evaluated your nonlinear constraint functions at the new point, at least one of them...

10 years ago | 0

Answered
How do you retrieve the current solution if you stop the Genetic algorithm function?
I believe that if you click the Pause button you will be able to access the current state of the population, but if you click St...

10 years ago | 0

Answered
Using Genetic Algorithm with bounds and non linear constraints
Your |simple_constraint| function should not return function handles for |c| and |ceq|, but instead should return double values:...

10 years ago | 0

Answered
Production Optimization using MILP
What do you think the decision variables are, namely, the variables that the solver will change to minimize your cost? Do they i...

10 years ago | 0

Answered
How to find exponent of a function?
I suppose that you have some data for |d| and |D|, and maybe even |Y|, and are asking how you can fit |n| and |Y| to the data. I...

10 years ago | 0

Answered
How do I speed up the optimization of a tomographic imaging system with genetic algorithm?
I believe that the best way to speed any genetic algorithm optimization is to change the solver from |ga| to |patternsearch|. In...

10 years ago | 0

Answered
fmincon and Parallel Computing
The automatic parallel computing in |fmincon| will not help, because you are providing function gradients, and that is all the p...

10 years ago | 0

| accepted

Answered
problem with writing uncommon constraint function in genetic algorithm???
Take a look at the <http://www.mathworks.com/help/optim/ug/writing-constraints.html#brhkghv-16 documentation of nonlinear constr...

10 years ago | 0

Answered
Non Linear Programming Optimization problem
I do not understand what you are trying to do, but if you have Optimization Toolbox, you might be able to use its nonlinear prog...

10 years ago | 0

Answered
Fit an ellipse to a set of boxes.
# Parametrize an ellipse with a vector |x|, whose components represent the eccentricity, size, and center (4 dimensions), or any...

10 years ago | 0

Answered
Error message when using optimization toolbox
It is not clear to me how you are calling an optimization routine based on your Ebola function. At the very least, an objecti...

10 years ago | 0

Answered
Solving these two equations using Fsolve is giving the wrong answer don't understand why ?
Your tolerances don't make much sense. See <http://www.mathworks.com/help/optim/ug/tolerances-and-stopping-criteria.html the doc...

10 years ago | 0

Answered
Vectorization of nested for loops for following code
# Why all the |double| calls? It seems to me that they are completely superfluous. # MATLAB is a matrix language. I believe tha...

10 years ago | 0

Answered
Can I solve 5 partial differential equations (PDEs), which I wrote in Fortran, using Matlab?
It is not clear to me what type of equations you have, nor whether you have a Partial Differential Equation Toolbox license. PDE...

10 years ago | 0

Answered
Exporting from PDE toolbox to workspace
The question you raise is how to export for the PDE app to the workspace. The app is a visual method of solving PDEs. You can...

10 years ago | 0

Load more