Input user data into Surrogate Optimization Function
To pass extra parameters see Passing Extra Parameters. Alan Weiss MATLAB mathematical toolbox documentation

4 months ago | 0

| accepted

How to set a boundary condition to my solution of the fitness function? (MATLAB genetic algorithm)
I believe that your optimization will work much better using patternsearch as the solver instead of ga, or even using surrogateo...

4 months ago | 1

Can you help me with the output of my optimizer?
Use this example as a guide: Example of a Nested Output Function. Alan Weiss MATLAB mathematical toolbox documentation

4 months ago | 0

fmincon options settings mrsgarch
Here are some options you can try (some of your values do not make sense, such as having MaxIter be greater than MaxFunEvals, or...

4 months ago | 0

| accepted

How exactly is the merit function weight 'w' cycled in the surrogateopt function algorithm?
Each sample point uses one weight (one merit function at any one time). The weights cycle after every new point is generated. A...

4 months ago | 0

Why do I receive local exitflag -10 when I am using multistart?
The MultiStart run exit flags are described here. You see that –10 means the initial points that MultiStart tried all led to Inf...

4 months ago | 0

Incorrectly reported Func-count in lsqcurvefit. Also, MaxIterations not obeyed
Thank you for reporting this odd behavior, Matt. I investigated and found that an internal check for stopping in the nonlinear l...

4 months ago | 1

| accepted

Change axis of fcontour plot
The function reference page for fcontour shows at least two ways of choosing the contour lines: Use the LevelList name-value ar...

4 months ago | 1

| accepted

Nonlinear Optimization with 2 Variables, 1 variable is always equal limit
Your problem has costs in terms of the problem variables of the form cost = days*welders*positive + days*positive2; Here posit...

4 months ago | 0

In Matlab 2019, 2020, or 2021, can parallel computing be used with intlinprog?
No, there is no provision for parallel computation in intlinprog. You can always check the Release Notes to find what has change...

4 months ago | 0

| accepted

How to formulate nonlinear optimization problem with large number of variables and constraints
It sounds to me as if you want to fit an expression to data, possibly in a least-squares sense. For examples and details, see No...

4 months ago | 0

FMINCON with multiple constraints
I think that your fracturade function is returning data type SINGLE. Perhaps the quickest fix is to include the following call j...

4 months ago | 0

| accepted

Function evaluations (F-count) in fmincon
Please see the documentation on Iterations and Function Counds. To quote the relevant paragraph: If the problem has constraints...

4 months ago | 0

| accepted

MultiStart runs less than specified number of runs
This can happen when the StartPointsToRun property in ms is not 'all'. In that case, many start points can be skipped in a run b...

4 months ago | 1

| accepted

Problems using function fsolve
Check the suggestions in fsolve Could Not Solve Equation. Alan Weiss MATLAB mathematical toolbox documentation

4 months ago | 0

4 variables problem optimization with Genetic Algorithm
ga is a stochastic algorithm, and is expected to give different results on different runs. You can get reproducible behavior by ...

5 months ago | 1

| accepted

Lsqnonlin optimization unexpected behavior
lsqnonlin is a gradient-based solver. It first attempts to estimate the local gradient by small finite difference steps. If your...

5 months ago | 0

Which optimization tool should I use for my case?
I'm not sure that I understand what you are doing, but I think that you could use the fminbnd solver along with some interpolati...

5 months ago | 0

| accepted

How to increase accuracy of optimization using genetic algorithm of the following code? Value obtained by ga = -2360 (approx.) and Actual value is = -2390. Percentage of accuracy by ga = 98.7%
You are getting a pretty good answer from the wrong solver. Your objective and constraints are all smooth, so you should not be ...

5 months ago | 0

| accepted

Multi objective Bayesopt in MATLAB
There is no provision for using bayesopt for multiobjective problems. You have several choices: Use bayesopt as the optimizer i...

5 months ago | 0

Problem-Based Optimisation - "Linprog stopped because it exceeded its allocated memory"
Sorry, I do not know why the default algorithm gives this error. The 'interior-point' algorithm solves it easily. dt = 15/60; ...

5 months ago | 0

| accepted

How can I define fitness limit for multiple objectives when using gamultiobj
You can set Nonlinear Constraints in gamultiobj to keep the objective functions within the limits you like. Or you can simply po...

5 months ago | 0

| accepted

What should be the optimization method for my case?
For such a general question I can give only general advice. See the topics Optimizing a Simulation or Ordinary Differential Equa...

5 months ago | 0

| accepted

How to define discrete variables in GA
Take a look at the Mixed Integer ga Optimization topic, and in particular the example Solving a Mixed Integer Engineering Design...

5 months ago | 1

Finding solution for array that satisfies given constraints and gives desired output
I don't know if this is what you want, but the problem-based approach in Optimization Toolbox™ handles your equations easily. E...

5 months ago | 0

| accepted

FMINCON is not providing feasible answers
Your nonlinear constraint functions all look linear to me. I suggest that you remove the nonlinear constraints from the problem ...

5 months ago | 0

Optimization problem with complex number in patternsearch command
Global Optimization Toolbox solvers such as patternsearch require real numbers only as control variables. It is fine to calculat...

5 months ago | 1

| accepted