Answered
Optimization of differential equation parameters with lsqcurvefit function generates error in virtue of the parameter initial values
I haven't tried this, but I think that you defined your anonymous functions incorrectly. k1=@(c,x)A1*exp((-E1)/(R*x(2))); ...

7 years ago | 0

Answered
how to see the PID parameters when implementing Optimization app?
I'm not sure that I understand you. The PID parameters are your control variables, right? I mean, they are in the vector |x| tha...

7 years ago | 0

| accepted

Answered
fmincon "not enough input argument"
What are your control variables? I mean, the variables that you want |fmincon| to move to look for an optimum? It looks like you...

7 years ago | 3

| accepted

Answered
Print more iteration detail in GA code
Take a look at <https://www.mathworks.com/help/gads/custom-output-function-for-genetic-algorithm.html Custom Output Function for...

7 years ago | 0

| accepted

Answered
Hello , How can we code project scheduling problems with time and resource constriants?..What are the fundamental concepts requred?
You might find some inspiration in the <https://www.mathworks.com/help/optim/linear-programming-and-mixed-integer-linear-program...

7 years ago | 0

Answered
number of generations in ga
# The <https://www.mathworks.com/help/gads/description-of-the-nonlinear-constraint-solver.html nonlinear constraint algorithm> t...

7 years ago | 0

Answered
particle swarm algorithm (PSO)
Sorry, <https://www.mathworks.com/help/gads/particleswarm.html |particleswarm|> does not accept any constraints except for bound...

7 years ago | 0

Answered
optimal values of input values to a function based on data
This sounds like <https://www.mathworks.com/help/matlab/math/example-curve-fitting-via-optimization.html Curve Fitting via Optim...

7 years ago | 0

Answered
How to discard solutions from simulated annealing algorithm?
I think that the real question is why are you doing this? If the answer is to optimize something, then you are doing yourself a ...

7 years ago | 0

Answered
Error when trying to do 'Hyperparameter Optimization' using Parallel Computing
Do you have a Parallel Computing Toolbox license? If so, then please tell us what version of MATLAB you are using. Alan Weiss...

7 years ago | 1

| accepted

Answered
Is it possible to fit 30 data points to a differential equation system of 5 equation to determine 13 unkown constants? (for instance with lsqcurvefit)
The problem is not the number of data points, but the number of starting points. It is very typical to have multiple local minim...

7 years ago | 0

| accepted

Answered
Undefined function or variable 'optimproblem'
As the <https://www.mathworks.com/help/optim/release-notes.html release notes> show, |optimproblem| was introduced in R2017b. Or...

7 years ago | 0

Answered
How to optimize an ode45 to find a constant value which completes a condition within a set time constraint
For an example showing how to optimize the parameters of an ODE, see <https://www.mathworks.com/help/optim/ug/fit-differential-e...

7 years ago | 0

Answered
Minimization Algorithm (fmincon)
After reading your code I decided that, based on the suggestions in <https://www.mathworks.com/help/optim/ug/optimizing-a-simula...

7 years ago | 0

| accepted

Answered
GA code problem in using options
|optimoptions| was extended to |ga| in R2016a. If your MATLAB version is older than that, use |gaoptimset|. And, as Stephan said...

7 years ago | 2

| accepted

Answered
How to determine the elapsed time (run time) in seconds to determine the efficiency of the GA in certain code?
I am not sure that I understand your question. Is this a homework problem, or are you trying to determine how to improve your op...

7 years ago | 0

Answered
What is MinLeafSize in Hyperparameter Optimization
<https://www.mathworks.com/help/stats/fitrtree.html#bt6cr84-MinLeafSize MinLeafSize description>. The algorithm is briefly sketc...

7 years ago | 0

| accepted

Answered
Is there any gradient descent method available?
Indeed, |fminunc| has a mainly-undocumented gradient descent feature that you can see demonstrated in <https://www.mathworks.com...

7 years ago | 0

| accepted

Answered
Injecting a trust region radius within fmincon
You are free to edit the source code of the |'trust-region-reflective'| or |'active-set'| |fmincon| algorithms, though not the |...

7 years ago | 0

| accepted

Answered
Should lsqcurvefit reshape the initializing parameter vector?
It is possible that the behavior of solvers is inconsistent, so when the vector orientation matters, I suggest that you be proac...

7 years ago | 1

Answered
fmincon linear contraint doens't work for me
|fmincon| does NOT guarantee that linear constraints are satisfied at intermediate iterations, only (to within tolerances) at th...

7 years ago | 2

Answered
Choice of step size
All of the <https://www.mathworks.com/help/optim/ug/constrained-nonlinear-optimization-algorithms.html |fmincon| algorithms> are...

7 years ago | 0

Answered
Writing an objective function for MILP and GA
I strongly suggest that you use |intlinprog| for your problem and do not attempt to use |ga|, as the <https://www.mathworks.com/...

7 years ago | 0

Answered
Optimization of objective function with integrals where a bound is an optimization variable
Currently, the problem-based approach, using |optimproblem| and the like, is only for <https://www.mathworks.com/help/optim/opti...

7 years ago | 0

Answered
fmincon in new Matlab version gives different results
I believe that nothing changed in the algorithm. However, there are always tweaks to the underlying MATLAB linear algebra routin...

7 years ago | 0

| accepted

Answered
How can I apply PSO algorithm to optimize power flow in a simple power system ? and what is the output of PSO algorithm ? Can somebody provide me an simple example ?
The documentation, including several examples, is in <https://www.mathworks.com/help/gads/particle-swarm.html Particle Swarm>, f...

7 years ago | 0

Answered
Writing ga output to text file
I suspect that the issue is having multiple workers trying to write to the same output file at the same time. See "Factors that ...

7 years ago | 0

Answered
Matlab GA evaluating incorrect fitness values.
I think that the problem is that your |FF| function, as written, does not necessarily output nonnegative values if the |E| value...

7 years ago | 0

Answered
How can I do FE analysis in matlab?
Perhaps you can use <https://www.mathworks.com/help/pde/index.html Partial Differential Equation Toolbox>. Good luck, Alan...

7 years ago | 0

Answered
can we model non linear PDE in matlab using PDE model?
If the nonlinearity is of a supported type, then you should be able to model the PDE. See <https://www.mathworks.com/help/pde/ug...

7 years ago | 0

Load more