Respondida
How can I minimize the difference between data from PDE script and experimental data set?
You can use |fminsearch|, or, if you have an Optimization Toolbox(TM) license, |lsqcurvefit|. See <https://www.mathworks.com/hel...

casi 9 años hace | 0

Respondida
Using fminsearch in a for loop
Your |Energy| function is defined outside the |for| loop. Therefore, parameters like |Ltot| do not change in the function. De...

casi 9 años hace | 0

| aceptada

Respondida
Return user data from bayesopt
The syntax for writing an objective function that outputs extra user data is described <https://www.mathworks.com/help/stats/bay...

casi 9 años hace | 0

| aceptada

Respondida
Want to use Matlab similar to Solver in Excel
For examples of how to do this with or without an Optimization Toolbox(TM) license, see <https://www.mathworks.com/help/optim/ex...

casi 9 años hace | 0

Respondida
Vectorized Multiobjective GA sends single individuals rather than entire population
As the example you quote shows, |gamultiobj| works in a vectorized fashion when the |'UseVectorized'| option is |true|. If it is...

casi 9 años hace | 0

Respondida
Quadprog - variable values zero or higher than particular value
I believe that something like your requirement is satisfied in the latest release <https://www.mathworks.com/help/optim/examples...

casi 9 años hace | 0

| aceptada

Respondida
Nonlinear fitting of a numerical solution of a PDE
I don't understand what you are asking. I assume that you have a model of a PDE solution, and that your model has a few paramete...

casi 9 años hace | 0

| aceptada

Respondida
Why does it show on genetic algorithm plotting 'gaplotgenealogy not supported for this algorithm'
If you enter help gaplotgenealogy you see at the end of the help this statement: NOTE: This plot is only availabl...

casi 9 años hace | 1

| aceptada

Respondida
Solver SQP works with linear objective functions?
According to the <https://www.mathworks.com/help/optim/ug/optimization-decision-table.html Optimization Decision Table>, for lin...

casi 9 años hace | 0

| aceptada

Respondida
How to specify initial conditions for a "Generic System" in the PDE App?
I believe that you should give |u0| and |ut0| as specified in the <https://www.mathworks.com/help/pde/ug/hyperbolic.html#inputar...

casi 9 años hace | 0

Respondida
What method/function should be used for large scale optimization
Check the <https://www.mathworks.com/help/optim/ug/optimization-decision-table.html Optimization Decision Table> to choose the a...

casi 9 años hace | 0

| aceptada

Respondida
How to solve this problem using PSO?
Unfortunately, |particleswarm| does not currently support linear constraints. You really should use |linprog| for this kind of p...

casi 9 años hace | 0

| aceptada

Respondida
Which algorithm can be used to solve this optimization problem
There is no MATLAB toolbox solver except <https://www.mathworks.com/help/gads/ga.html |ga|> from Global Optimization Toolbox tha...

casi 9 años hace | 0

Respondida
Can I use automatic differentiation in fmincon?
I doubt that you would get any significant speedup using automatic differentiation if you use it simply to specify the gradient ...

casi 9 años hace | 0

| aceptada

Respondida
Error using barrier. Nonlinear constraint function is undefined at initial point. Fmincon cannot continue.
You didn't give many of the parameters used in your code, such as |N|, so we cannot reproduce your problem. However, it is cl...

casi 9 años hace | 1

Respondida
Error using pde.TransientThermalResults (line 56) Solution does not correspond to time-dependent PDE.
How are you including |Vcell| and |F| in the function |qFunc|? Are you passing them in a nested function? Perhaps you need to re...

casi 9 años hace | 1

| aceptada

Respondida
Optimization of discrete variables
50^6 > 1e10, so it might not be practical to perform an exhaustive search, which I think is what you mean with the nested for lo...

casi 9 años hace | 0

Respondida
Heat Distribution in a Circular Cylindrical Rod cfunction doesnt include density?
In <https://www.mathworks.com/help/pde/ug/heat-distribution-in-a-circular-cylindrical-rod.html#zmw57dd0e22779 this section of th...

casi 9 años hace | 1

| aceptada

Respondida
failure in initial objective function evaluation
Thank you for the complete error message. |z1| should be defined as z1 = x(49:end); I believe that, as you have defined ...

casi 9 años hace | 0

| aceptada

Respondida
Optimization of a real time system
If I understand you corectly, you have three control variables that each take one of 15 to 20 possible values, meaning you have ...

casi 9 años hace | 0

| aceptada

Respondida
fmincon (sqp) does not recover from NaN
I don't know what is happening here, but my first guess would be that you should try the |'interior-point'| algorithm and see wh...

casi 9 años hace | 1

| aceptada

Respondida
Hi How i can use fmincon for 3 parameter minimizarion . I mean it should be able to find the optimum variable of that 3 parameter to minimize the function.Would you mind give an example?
The <https://www.mathworks.com/help/optim/ug/writing-scalar-objective-functions.html first example> on the page describing how t...

casi 9 años hace | 1

Respondida
PDE Thermal Model with heat produced as a function
To write the surce as a function of time and temperature, follow <https://www.mathworks.com/help/pde/ug/heat-distribution-in-a-c...

casi 9 años hace | 0

| aceptada

Respondida
How to get Lagrange multipliers while running fmincon?
Unfortunately, you cannot do this with an <https://www.mathworks.com/help/optim/ug/output-function.html output function> because...

casi 9 años hace | 0

Respondida
Genetic Algorithm constant input for different topologies
If I understand you correctly, you have 10 choose 2 = 45 possibilities. Why not do an exhaustive search? Even if you program int...

casi 9 años hace | 0

Respondida
Particle swarm optimization for large scale integer variables and large number of constraints in matlab
That sounds like the wrong thing to do. You would have to write the algorithm yourself, and I am not aware of an integer particl...

casi 9 años hace | 0

| aceptada

Respondida
travel salesman question on Matlab using genetic algorithm
<https://www.mathworks.com/help/gads/examples/custom-data-type-optimization-using-the-genetic-algorithm.html This example might ...

casi 9 años hace | 0

Respondida
fminicon optimization function and NaN problem
If you give a starting point that is feasible (no |NaN| values), and use the |interior-point| algorithm, then |fmincon| should b...

casi 9 años hace | 0

Respondida
optimization with fminsearch error
Your function as written is monotone decreasing in the variable |ah25|, and asymptotically approaches |-1.25e6| as |ah25| gets l...

casi 9 años hace | 0

| aceptada

Respondida
ga custom functions parameters
I am sorry that you are having trouble. Perhaps <https://www.mathworks.com/help/gads/examples/custom-data-type-optimization-usin...

casi 9 años hace | 0

Cargar más