Answered
How can i use all CPU ?
If you have a Parallel Computing Toolbox(TM) license, you can try using that in conjunction with the |ga UseParallel| option. Ot...

9 years ago | 0

Answered
OptimizeHyperparameters option not recognized in R2016a
<https://www.mathworks.com/help/stats/release-notes.html As the release notes state>, Bayesian optimization was introduced in R2...

9 years ago | 0

Answered
Optimization of a variable matrix M of size nXm by minimizing error
I suppose that |M| is the set of control variables, meaning the variables that you want to change to perform an optimization. ...

9 years ago | 0

Answered
How to create a constraint function for optimisation
It depends on whether your variables are integer-valued or not. If they are integers and you have a mixed-integer linear program...

9 years ago | 0

Answered
How to show convergence graph with intlinprog/branch and bound?
You can use the |optimplotmilp| plotfunction to view convergence. See <https://www.mathworks.com/help/optim/ug/intlinprog-output...

9 years ago | 0

| accepted

Answered
View alternate feasible solutions with intlinprog
You can use the |savemilpsolutions| output function to collect the integer-feasible points that |intlinprog| found during its br...

9 years ago | 0

| accepted

Answered
How to write constraints for optimization problem?
It is not clear to me what the control variables of the optimization are, meaning which variables you are allowed to move to opt...

9 years ago | 0

Answered
How to use multiple sets of xDATA with lsqcurvefit?
Thanks you for giving such a complete, detailed question. Your error is clear. Your objective function takes a 5-D variable |c|:...

9 years ago | 0

Answered
LASSO with additional non-linear constraint
For |fmincon|, or indeed any Optimization Toolbox(TM) solver, you need to put all of your control variables in one vector, typic...

9 years ago | 0

Answered
How to draw a cylinder in MATLAB pdetool?
Create the geometry from a <https://www.mathworks.com/help/pde/ug/create-and-view-3-d-geometry.html#buv3nfg-1 point cloud>, as i...

9 years ago | 0

Answered
How to use "fsolve" for optimizing the objective function?
You have many problems with your formulation. One of them is this line: f = sum ((w(1,:)/(w(2,:).^w(3,:)*k)+((w(3,:)-1)*w(4...

9 years ago | 0

Answered
What is the coordinate system of 'region' used in 3-D PDE coefficients in Function Form?
Yes, the coordinates for the coefficients are exactly the coordinates for the geometry. I guess I never said that explicitly bef...

9 years ago | 0

| accepted

Answered
How do I do a multi-objective optimization with lower boundaries that are dependent on the optimized variable?
If you have <https://www.mathworks.com/help/optim/ug/linear-constraints.html linear constraints>, there is a particular syntax. ...

9 years ago | 0

| accepted

Answered
Change Face Labels at geometryFromMesh
I am sorry, but I don't think that there is a way to keep the labels fixed when you generate a new geometry. I will enter an enh...

9 years ago | 0

Answered
How can I obtain the parameters estimated in every iteration of lsqcurvefit?
Perhaps you could use an <https://www.mathworks.com/help/optim/ug/output-function.html output function> to give you the informat...

9 years ago | 0

Answered
constrained optimization using matlab
I think that you need to read the <https://www.mathworks.com/help/optim/ug/writing-scalar-objective-functions.html documentation...

9 years ago | 0

Answered
Dominated points are displayed in Pareto front - after termination
Thank you for supplying your code. Your objective function values are generated by random numbers. Every time they are evaluated...

9 years ago | 1

| accepted

Answered
How do i use optimization toolbox to optimize an objective function with matrix input variables (4x4)
You can only optimize scalar objective functions. What does it mean to optimize two or more functions at the same time? Either o...

9 years ago | 0

Answered
Help with script for multi-variable non-linear optimisation problem
Sometimes it is better to slow down, take the time to understand something, and then proceed. Optimization is the process of ...

9 years ago | 0

Answered
SQP leaving feasible region
The problem seems to be that your nonlinear constraint function is not satisfied, not that the bounds are violated. There is no ...

9 years ago | 1

Answered
How to implement a pso tunning for a function ?
Well, if you have Global Optimization Toolbox release 2014b or later, you can look at the <https://www.mathworks.com/help/gads/p...

9 years ago | 0

Answered
Best optimization algorithm for minimization of a chi-square function with about 20 parameters
Well, if your objective function is smooth, you might just want to use |MultiStart| along with |fmincon| or |fminunc| to minimiz...

9 years ago | 0

Answered
Speedup Partial Differential Equation Solver
There are two possible sets of time points that the solver visits. One is the set in |tlist|, the points you tell the solver to ...

9 years ago | 2

Answered
fsolve question ('undefined function or variable')
It could be that the reason you want to run this complicated syntax is that you have not understood that MATLAB optimization fun...

9 years ago | 1

Answered
Parallel Optimization: Loop or Finite-Difference Gradient
It is very difficult to know which way would work better. Can you test a small set of representative points and see which way is...

9 years ago | 0

Answered
Can PSO matlab toolbox optimize for maximum ?
<http://www.mathworks.com/help/gads/maximizing-vs-minimizing.html Minimize the negative>. Alan Weiss MATLAB mathematical t...

9 years ago | 0

| accepted

Answered
lsqcurvefit UseParallel error on matlab 2016b
It sounds to me as if your MATLAB installation is corrupted somehow. Try reinstalling, or at least reinstalling Optimization Too...

9 years ago | 0

Answered
gamultiobj's options
I do not understand at all what you are asking in your first question, sorry. For the second question, |ga| and |gamultiobj| ...

9 years ago | 0

| accepted

Answered
How to import geometry with holes to use with PDE toolbox?
You could try something like the following series of commands: [az,el,r] = meshgrid(linspace(0,2*pi-0.01),linspace(-pi,pi-0...

9 years ago | 0

Answered
Using genetic algorithm (ga) function for integer and linear inequality constrained optimization. Candidate solutions are violating the inequality constraints
Sorry about that, this is a documentation problem. Thank you for reporting the problem. I will fix the documentation soon. Ac...

9 years ago | 0

| accepted

Load more