답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

더 보기