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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

Respondida
I need some help in Genetic Algorithm Optimization... I have a fully functional code... i need to run GA for three parameters there and maximize one result... i need an example for three parameters... an example would help me a lot!!! can anyone help
<http://www.mathworks.com/help/gads/constrained-minimization-using-ga.html The documentation> has examples, such as this one wit...

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 4

| aceptada

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

casi 11 años hace | 2

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 1

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

Cargar más