Answered
why using pattrensearch with genetic algorithm gives error while fminunc not
Currently, you cannot use |optimoptions| to set options for |patternsearch|. Use <http://www.mathworks.com/help/gads/psoptimset....

10 years ago | 0

| accepted

Answered
Portfolio cardinality constraint in a genetic algorithm
Well, not in a genetic algorithm, but you might find <http://www.mathworks.com/help/optim/examples/mixed-integer-quadratic-progr...

10 years ago | 0

| accepted

Answered
How could I write this equation in matlab?
This looks like a <http://www.mathworks.com/help/optim/linear-programming-and-mixed-integer-linear-programming.html Mixed-Intege...

10 years ago | 0

Answered
Undefined function or variable 'createPDEResults'
<http://www.mathworks.com/help/pde/release-notes.html As the release notes state>, |createPDEResults| was introduced in R2015b, ...

10 years ago | 0

| accepted

Answered
Lsqnonlin with nonlinear constraint!
It seems to me that you have a nonlinear constraint with a sum of squares problem. If you examine the <http://www.mathworks.com/...

10 years ago | 1

| accepted

Answered
equivalent of fsolve in MATLAB
It depends on how many variables you have. If you have one unknown in a nonlinear function, you can use <http://www.mathworks.co...

10 years ago | 0

Answered
optimization using matlab (Binary integer programming )
If you have Optimization Toolbox, you can use the <http://www.mathworks.com/help/optim/ug/intlinprog.html intlinprog> function t...

10 years ago | 0

Answered
Vectorized fitness function for ga
It is difficult to look at your code and figure out what you are trying to do. In "code 1" you have the line tempvariables(i...

10 years ago | 0

| accepted

Answered
Sparsity pattern of Jacobian for fmincon
The |fmincon 'trust-region-reflective'| algorithm accepts a |HessPattern| option, but requires you to give an analytic gradient ...

10 years ago | 0

| accepted

Answered
How to define FMINCON Step size ?
<http://www.mathworks.com/help/optim/ug/choosing-a-solver.html#brhkghv-19 As the documentation states>, all Optimization Toolbox...

10 years ago | 0

| accepted

Answered
How can i plot a graph of one of the parameters vs no. of iterations in Genetic algorithm optimization technique??
Use a <http://www.mathworks.com/help/gads/genetic-algorithm-options.html#f14474 plot function>. If none of the built-in function...

10 years ago | 0

Answered
Stop Figures Window on the progress of Global Optimization Toolbox from maximizing itself
Thank you for reporting this undesirable behavior. The development team will investigate fixing it in a future release. Meant...

10 years ago | 0

| accepted

Answered
What initial handle(s) do I use to correctly solve the Heat/Diffusion PDE?
In 2-D geometry, if you have PDE Toolbox, you can use the |parabolic| solver. For examples, see <http://www.mathworks.com/help/p...

10 years ago | 0

Answered
Coefficients for 2D PDE: Can you have a coefficient that is f(x(t),y(t),t) ?
As far as I know, PDE Toolbox assumes that the geometry of the problem is fixed for all time. However, it might be possible to f...

10 years ago | 0

Answered
How to increase initial step size in optimization toolbox?
<http://www.mathworks.com/help/optim/ug/optimizing-a-simulation-or-ordinary-differential-equation.html As the documentation desc...

10 years ago | 4

| accepted

Answered
fmincon Current Step Size
It sounds to me as if the scaling of your problem is an issue, with these huge |x| values and tiny derivative values. Is it poss...

10 years ago | 2

Answered
refine mesh in PDEModel
You cannot refine a mesh using a PDEModel. You have to import the geometry (I assume that you did that before trying to create a...

10 years ago | 0

| accepted

Answered
how can i solve an optimization problem which has two constraints and five unknons?
This sounds like a job for <http://www.mathworks.com/help/optim/ug/fmincon.html fmincon>. You might find <http://www.mathworks.c...

10 years ago | 1

| accepted

Answered
use cplex for mixed integer problem but get non-integer output
Nearly any MILP solver uses floating point arithmetic internally, and uses tolerances to decide whether a number is "integer eno...

10 years ago | 0

| accepted

Answered
How can I optimize this problem to find the most suitable set of variables to maximize the cost function ?
You seem to have four variables. Your upper and lower bounds have four components each. |A| has four components. Yet you write |...

10 years ago | 0

| accepted

Answered
Is there any function named pdeRegionCalc in pde toolbox?
I wonder if perhaps your installation somehow got corrupted. Try rehash toolboxcache If that doesn't work, then maybe rei...

10 years ago | 0

Answered
The c coefficient for assempde found in a matrix of x,y values.
Well, you don't have |c| values for *every* point in the plate, just some finite subset, or possibly the values are constant ove...

10 years ago | 0

Answered
Set Neumann Boundary Conditions to PDEModel
<http://www.mathworks.com/help/pde/ug/nonconstant-boundary-object-specification.html The documentation> describes how to set bou...

10 years ago | 0

| accepted

Answered
how to calculate fitness function when simulation is running?
I have trouble understanding what you are doing. What are your control variables? I mean, which variables should the genetic alg...

10 years ago | 0

Answered
pdegplot without subdomain edges and labels?
After you create your geometry, use <http://www.mathworks.com/help/pde/ug/csgdel.html csgdel> to delete subdomain boundaries. Th...

10 years ago | 0

Answered
Solution very sensitive to initial guess?
I am not sure that this will help, but I can suggest two things that have a chance of improving things for you: # Use |lsqnon...

10 years ago | 0

Answered
I am attempting to implement the fminunc (unconstrained Problem) function in MATLAB. I am getting an error with my code.
Your code does not make much sense to me for the following reasons: * x1 and x2 are scalars. So what do you expect n to be? ...

10 years ago | 1

Answered
Exporting PDE toolbox solutions
With R2014b or later, <http://www.mathworks.com/help/pde/ug/evaluate.html#buiw7fa you can interpolate the solution to a grid bef...

10 years ago | 0

Answered
User defined optimization solver options
This isn't really an optimization question, but a programming question. I am not an expert programmer. But I'll tell you wat I t...

10 years ago | 0

| accepted

Load more