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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 0

| accepted

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

8 years ago | 1

| accepted

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 1

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

8 years ago | 1

| accepted

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

8 years ago | 0

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

8 years ago | 1

| accepted

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

8 years ago | 0

| accepted

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

8 years ago | 0

| accepted

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

8 years ago | 1

| accepted

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

8 years ago | 1

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 0

Load more