Answered
Nelder-Mead optimization with equality constraints
I would imagine that you also have the constraints that several or all of your parameters must be positive. It might be diffi...

10 years ago | 0

| accepted

Answered
Linear programming optimization for conditional
If I understand you correctly, and if |p(i) > 0|, then instead of |I(i)| you can use I(i) * p(i)* (x(i) - x(i-1) + l(i) - g...

10 years ago | 0

| accepted

Answered
How to optimize a parameter as well as independent variable
I do not understand the problem. It seems to me that you can write your objective function as: function f = ffun(x) a = ...

10 years ago | 0

Answered
Change PDE Solver parameter to Jacobian Lumped
For 2-D nonlinear problems you can use the |pdenonlin| solver with the <http://www.mathworks.com/help/pde/ug/pdenonlin.html#name...

10 years ago | 0

| accepted

Answered
Global optimization with non linearly linked parameters
I do not understand which are your control variables (ones that you want the solver to change in order to reach a minimum) and w...

10 years ago | 0

| accepted

Answered
Non-linear constraints for gamultiobj
Nonlinear constraints were added to |gamultiobj| in <http://www.mathworks.com/help/gads/release-notes.html R2014b>. The synta...

10 years ago | 1

Answered
How do I use optimtool to optimize a tetris game?
Like all optimization solvers, |fminsearch| requires ONE variable as its argument. Fortunately, that variable can be a vector. ...

10 years ago | 1

| accepted

Answered
Adaptive meshing removed from PDE toolbox?
|adaptmesh| remains available for now in the legacy workflow. It has not been updated to 3-D geometry or to the new solvers. We ...

10 years ago | 1

| accepted

Answered
How to turn off function values when using fsolve. ('Display','off') is not doing anything that is need it to do.
As Walter suspects, I believe that in your |growthrate| code you left off a final semicolon from the line of code that creates |...

10 years ago | 0

Answered
Optimizing a (rather large) sum-of-Gaussians - fmincon fails?
Because you are minimizing a sum of squares, I suggest that you use |lsqnonlin| or |lsqcurvefit| to try to find a minimum. If yo...

10 years ago | 0

| accepted

Answered
Geometry error when Creating CSG Geometry at the Command Line!!!!!
Did you make your geometry by using |decsg| or by making the decomposed geometry matrices by hand? I strongly suggest that you u...

10 years ago | 0

Answered
Problem solving most simple elliptic PDE, 2015a
I do not see any error when using your set of commands, though I think the last command should be u = assempde(pdem,c,a,f)...

10 years ago | 0

| accepted

Answered
Specifying diffusion coefficient, PDE toolbox
Since you have R2015a, you will probably be happiest using the latest workflow. For a 2-D problem, the easiest way to write diff...

10 years ago | 0

Answered
Optimization Problem for 4 variable function
<http://www.mathworks.com/help/matlab/math/example-curve-fitting-via-optimization.html The documentation has some suggestions>. ...

10 years ago | 0

Answered
In an assignment A(:) = B, the number of elements in A and B must be the same. Error whle using fmincon
I think, but am not 100% certain, that the reason you are getting an error is that |ode45| gives a variable number of output tim...

10 years ago | 1

| accepted

Answered
No solution with intlinprog
Depending on your MATLAB version, in addition to the other suggestions in <http://www.mathworks.com/help/optim/ug/tuning-integer...

10 years ago | 1

Answered
a mixed-integer multi-objective optimization problem using Global Optimization Toolbox
Sorry, there is currently no provision for solving mixed-integer multiobjective problems using |gamultiobj|. Alan Weiss MA...

10 years ago | 0

Answered
Can "solvepde" be used to solve PDEs in one dimension by the finite element method ?
The question is, can you put your problem into the <http://www.mathworks.com/help/pde/ug/equations-you-can-solve.html class of e...

10 years ago | 0

Answered
MATLAB PDE Toolbox state.time not producing sensible values
Sorry about that. <http://www.mathworks.com/matlabcentral/answers/269950-why-do-i-have-error-during-usage-of-state-time-for-non-...

10 years ago | 0

Answered
Error: Error using lsqcurvefit Function value and YDATA sizes are not equal.
MATLAB think that your objective function is not giving you a return vector of the correct size. Take your x data, |grad|, take ...

10 years ago | 0

Answered
Is there an optimizer in MATLAB that can handle a mixed integer problem?
If the objective function is linear, and you have an Optimization Toolbox license, try the |intlinprog| <http://www.mathworks.co...

10 years ago | 0

Answered
Attempting to make LSQCurveFit More Accurate
<http://www.mathworks.com/help/optim/ug/when-the-solver-might-have-succeeded.html The documentation has some suggestions>. But i...

10 years ago | 0

Answered
User supplied gradient to lsqcurvefit
Set the |Jacobian| option to |'on'|, and ensure that your objective function returns the Jacobian in the second output. For an e...

10 years ago | 1

| accepted

Answered
i want to optimise(with genetic algorithm) a error function derived from 7 variables to obtain values of those variables. please tell me how to use ga on that function?
While I would not recommend using |ga| for this problem, the setup for |ga| or any other optimization solver is the same: # W...

10 years ago | 0

Answered
Constrained Global Optimization Problem with MultiStart, GA and HybridFunction using Parallel Processing
I think that it is a good idea to use |MultiStart| to help find a global best fit for your model. However, I think that it is a ...

10 years ago | 0

Answered
Finding variables using a simple optimization (maybe linear programming)
You have three equations and |n| unknowns |x1|, ..., |xn|. In general you will have an |n| - 3 dimensional set of variables that...

10 years ago | 0

Answered
How to run " intlinprog " with " parallel computing " (whole CPU-performance)
You are correct. Currently, |intlinprog| has no way to profit from a parallel pool. Sorry. We are looking at ways of speeding...

10 years ago | 0

Answered
Why my 20 variables nonlinear constraint Genetic Algorithm runs for only 5~6 generations?
The reason you get so few "iterations" and so many function evaluations is that you have nonlinear constraints. See the descript...

10 years ago | 2

| accepted

Answered
How to pass a state field (state.Generation) to a fitness function when using Genetic Algorithm command?
I think that you are mixing up the fitness function evaluation with an <http://www.mathworks.com/help/gads/genetic-algorithm-opt...

10 years ago | 1

Answered
How to generate random samples for a custom probability density function
I think that the first thing you need to do is scale your likelihood so that it becomes a real pdf that integrates to 1. You can...

10 years ago | 0

Load more