Respondida
Doubts in genetic algorithm (Using toolbox)
# Use normal default MATLAB variables, not any other type. # The mixed-integer solver, as its name suggests, is MIXED-integer, ...

alrededor de 8 años hace | 0

| aceptada

Respondida
What is the correction of error: Failure in initial user-supplied objective function evaluation. PARTICLESWARM cannot continue?
Without reading your code, I can tell you that your initial swarm contained at least one point that led to a NaN or Inf or compl...

alrededor de 8 años hace | 1

| aceptada

Respondida
Get access to all the population members of one generation (Multi-objective optimization - gamultiobj)
I am not sure that I understand how you are passing information between MATLAB and COMSOL, but if you are using a parallel netwo...

alrededor de 8 años hace | 0

Respondida
How can I implement constraints of x1 not equal to x2 in intlinprog ?
I'm not sure that this is the best approach, but I think that it is a correct approach. Assume that |x1| and |x2| are each bound...

alrededor de 8 años hace | 1

Respondida
Can fgoalattain recover from NaN values in function derivatives?
The |fgoalattain| algorithm is based on the |fmincon 'active-set'| algorithm, which does not recover gracefully from |NaN| value...

alrededor de 8 años hace | 1

| aceptada

Respondida
hide message for fmincon
Set the |Display| option to |'none'|. Make sure to pass the options to |fmincon|. Alan Weiss MATLAB mathematical toolbox d...

alrededor de 8 años hace | 0

Respondida
Plot Slice of pdeplot3D
Did you look at the <https://www.mathworks.com/help/pde/ug/plot-3-d-solutions.html examples in the documentation>? There is one ...

alrededor de 8 años hace | 0

| aceptada

Respondida
Problem Based approach for Mixed Integer Linear Programming problem fails to produce any feasible solution.
To check whether the bounds and linear constraints are inconsistent, see <https://www.mathworks.com/help/optim/ug/when-the-solve...

alrededor de 8 años hace | 0

Respondida
for loop for gradient nested within objective function of fmincon
It looks to me as if your gradient should have 10 elements. Did you declare all those variables global in the workspace? Mayb...

alrededor de 8 años hace | 0

| aceptada

Respondida
Want Less "Noisy" Solution from fmincon
It seems to me that you are looking for a global optimum, but you are likely getting stuck in local optima. So I would suggest t...

alrededor de 8 años hace | 0

| aceptada

Respondida
I am using GA tool in Matlab and after running the optimize tool I got the error Optimization running.
The error means that your fitness function returns a vector or matrix instead of a scalar value. In other words, |Y = simple_fit...

alrededor de 8 años hace | 0

Respondida
Export geometry out of model container
Your <https://www.mathworks.com/help/pde/ug/pde.pdemodel.html |PDEModel|> object has a |Mesh| property that is a <https://www.ma...

más de 8 años hace | 0

Respondida
lsqnonlin stops early issue
The problem seems to be poor scaling. The speed of light is awfully large, so the times are miniscule. I suggest that you set...

más de 8 años hace | 1

Respondida
Undefined function '[function name] ' for input arguments of type 'double'.
Sometimes you need to change the finite difference step size, as explained in <https://www.mathworks.com/help/optim/ug/optimizin...

más de 8 años hace | 0

| aceptada

Respondida
Using factorial in optimiztion toolbox
Do you really need to know the factorial of those large numbers? Or would it be sufficient to know the logarithm of the numbers?...

más de 8 años hace | 0

| aceptada

Respondida
What dimension is measured by the output of the traveling salesman function?
You need to ask the person who wrote the code what the output means. We cannot possibly know how anyone implemented an algorithm...

más de 8 años hace | 0

Respondida
I would like to implement special restrictions to the intcon usage for ga optimization.
Set a linear constraint |x(1) + x(2) + x(3) <= 3/2|. In other words, A = [1,1,1]; b = 3/2; See the <https://www.mathw...

más de 8 años hace | 0

| aceptada

Respondida
i have generated mesh for elliptical domain(2d) using pde tool box , how to get these node points coordinates of mesh generated?
It depends how you generated the mesh: * |generateMesh| -- examine the |Nodes| property of the |FEMesh| object in the |PDEMod...

más de 8 años hace | 0

| aceptada

Respondida
how to solve the following expression in matlab optimization tool
This looks like a job for <https://www.mathworks.com/help/optim/ug/fmincon.html |fmincon|> with the objective function as you wr...

más de 8 años hace | 0

| aceptada

Respondida
How can I optimize a two-reservoir system in Matlab with linear constraints specific to each reservoir but one objective function?
Your linear constraints can apply to whatever variables you want. For example, if you have a vector |x = (x(1),...,x(n))| and yo...

más de 8 años hace | 1

Respondida
How to plot the search path in patternsearch to find the minima?
Take a look at <https://www.mathworks.com/help/gads/examples/pattern-search-climbs-mount-washington.html Pattern Search Climbs M...

más de 8 años hace | 0

Respondida
Error message using function fminunc
The error is clear. Try to evaluate |fun_1938(param0_1938)| and you will find that it throws an error. Investigate the error usi...

más de 8 años hace | 0

Respondida
Is there a way to plot a subset of the surfaces, with Face labels, using pdegplot?
I certainly feel your pain. But, at the moment, I believe that there is no built-in way to do what you want. Alan Weiss MA...

más de 8 años hace | 0

Respondida
I need to maximize an objective function using genetic algorithm but the toolbox fails to do so. Can you help ?
Is your problem inherently nonlinear? If you can express your objective and constraints as linear functions, then you would doub...

más de 8 años hace | 0

Respondida
Multiobjective GA pareto front
There are no built-in plot functions for that many objective functions. You will have to figure out by yourself how you want to ...

más de 8 años hace | 0

Respondida
link ODE45 solver with the optimization toolbox
<https://www.mathworks.com/help/gads/optimize-an-ode-in-parallel.html Here is an example>. Alan Weiss MATLAB mathematical ...

más de 8 años hace | 0

Respondida
How to use IF statement to filter out FSOLVE failed solutions in a loop?
Ask for more outputs from |fsolve|. If the returned |<https://www.mathworks.com/help/optim/ug/fsolve.html#buta__s-exitflag exitf...

más de 8 años hace | 0

| aceptada

Respondida
How can I label faces and edges of my model using dsg in pde toolbox?
The only way that I know to make the labels refer to things reproducibly is to construct your geometry using a <https://www.math...

más de 8 años hace | 0

| aceptada

Respondida
How to solve a nonlinear optimization problem using fmincon
The only thing that occurs to me is that you have no bounds on your variables. This is usually a mistake, especially for a probl...

más de 8 años hace | 0

Respondida
how I transfer a multi-objective optimization ( F1 F2) to a mono-objective optimization f ??
Usually you would optimize fun = @(x)-A*F1(x) + (1-A)*F2(x) where |A| is a number from 0 through 1. When |A| = 0 this is...

más de 8 años hace | 0

Cargar más