Answered
How should I use Fmincon function when I just have linear constraints but Nonlinear objective function?
Your problem is that you are using |options| in the place where |fmincon| expects to see nonlinear constraints. In other words, ...

8 years ago | 0

| accepted

Answered
Is there any automatic code/way to choose/optimize the neural networks parameters on MATLAB?
In addition to Greg's comment (and he is the source of most wisdom on this matter), perhaps <https://www.mathworks.com/help/nnet...

8 years ago | 0

Answered
is the new function "optimproblem" only applicable to linear objective functions?
Indeed, the <https://www.mathworks.com/help/optim/ug/problem-based-workflow.html problem-based approach> is currently for linear...

8 years ago | 0

| accepted

Answered
fmincon optimization not responding to options settings
It is possible that you have more than 4 dimensions in the problem. No matter what you set for |MaxFunctionEvaluations|, |fminco...

8 years ago | 1

| accepted

Answered
How can I solve this Min Opt with 9 decision variables, which are again in the form of matrices
I think that you are doing very well for a novice. You can continue in two different ways, at least. 1. As you have been doin...

8 years ago | 0

| accepted

Answered
Does the Matlab Student unbundled version includes the PDE tool?
<https://www.mathworks.com/academia/student_version.html Unbundled contains no toolboxes>. PDE Toolbox is available for $49 more...

8 years ago | 0

Answered
Fmincon's interior-point algorithm does not return minimal objective
Perhaps some of the <https://www.mathworks.com/help/optim/ug/when-the-solver-might-have-succeeded.html suggestions on what to do...

8 years ago | 0

Answered
How to use ScaleProblem in fmincon together with sqp or interior-point?
I am sorry, you found a documentation error. I will fix it soon. Currently, if you set options using |optimoptions| (recommen...

8 years ago | 1

| accepted

Answered
GAMULTIOBJ constraints with ODE45.
I believe that you are not passing the calculated values of your objective functions |F| correctly to your nonlinear constraint ...

8 years ago | 0

| accepted

Answered
"Error in running optimization. Not enough input arguments" while running ga
You need to have ONE variable as your decision variable. Something like function Length_Sum = objective_function(x) l1 =...

8 years ago | 1

| accepted

Answered
How can I control decision variables?
I assume that |u| and |v| are integers, because otherwise the problem is ill-posed. In that case, to say that both variables ...

8 years ago | 0

Answered
fminunc in an endless loop
While I do not really understand what you are trying to do, perhaps you need to set |fminunc| options to use <https://www.mathwo...

8 years ago | 0

Answered
GA with integer and linear constraints
You can set your returned objective function values to a large value, say 1e100, if the calculation comes back complex or NaN. ...

8 years ago | 1

Answered
Derivative free optimisation with over 100 variables
While the other comments have largely been negative, I think that you might have some luck using |patternsearch| with the |Cache...

8 years ago | 1

Answered
PDE Toolbox: Parametrize geometry function
Strangely enough, someone else asked <https://www.mathworks.com/matlabcentral/answers/363049-pdetoolbox-passing-own-parameters-t...

8 years ago | 1

| accepted

Answered
Optimize linear fit with variable range
This sounds to me like a multiobjective optimization problem. You want the biggest range possible, and at the same time you want...

8 years ago | 0

| accepted

Answered
How to pull out rows with a unique value in a specified column?
Perhaps the following works: [C,ia] = unique(summed(:,2)); uniqueVals = summed(ia,:); Alan Weiss MATLAB mathematic...

8 years ago | 0

| accepted

Answered
Fit model to measured data without toolbox
I suggest that you try evaluating |myCostFunc(pGuess)| and seeing if the result is a scalar. If it is a scalar, then please p...

8 years ago | 0

Answered
How to formulate annulus bounds constraints in ga ?
You need to use a nonlinear constraint for this. Something like function [c,ceq] = myannulus(x) ceq = []; c(1) = (-(x...

8 years ago | 0

| accepted

Answered
how to keep gamultiobj goals positive
If you have R2014b or later, use a <https://www.mathworks.com/help/optim/ug/nonlinear-constraints.html nonlinear constraint func...

8 years ago | 0

| accepted

Answered
how can i do multi objective optimization using matlab
If you have Global Optimization Toolbox, use <https://www.mathworks.com/help/gads/gamultiobj.html |gamultiobj|>. Alan Weiss ...

8 years ago | 1

| accepted

Answered
Is there a better function to minimize than fminsearch ?
You might be interested in the <https://www.mathworks.com/help/optim/ug/optimization-decision-table.html Optimization Decision T...

8 years ago | 2

Answered
A problem when I want to install R2017b, please help me
For installation help, contact <https://www.mathworks.com/support/contact_us/?s_tid=sp_ban_cs technical support>. Alan Weiss ...

8 years ago | 1

Answered
Failure in initial objective function evaluation. FMINCON cannot continue. error in fmincon line(536)
I suggest that you <https://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html use the debugger> and ...

8 years ago | 0

Answered
Failure in initial objective function evaluation. FMINCON cannot continue. error in fmincon line(536)
Almost certainly, you are not passing the value of |Gjo| that is in your workspace. See <https://www.mathworks.com/help/optim/ug...

8 years ago | 0

Answered
maximizing the norm of a matrix using fmincon
What makes you think that there is anything wrong? You get a very large answer. Great! |fmincon| was trying to maximize. Is the ...

8 years ago | 0

Answered
Bayesian optimisation (coupled?) constraints - Bayesopt
I think that you have set up the problem correctly, and in the most efficient way. Alan Weiss MATLAB mathematical toolbox ...

8 years ago | 0

Answered
I want to solve the objective function
I cannot tell from your explanation whether your superscript indices mean raise to a power or not. If not, then I believe that y...

8 years ago | 0

| accepted

Answered
Bug in bayesopt() function? Initial evaluation points table being incorrectly evaluated?
Your |InitialX| is a 1-by-2 table with contents x1 = [0 1] x2 = [0 1] This is not what |bayesopt| expects. According ...

8 years ago | 0

Answered
fmincon with nonlcon does not converge to optimum value
The |'interior-point'| algorithm cannot allow for points that are right on a boundary, yet your nonlinear constraint attempts to...

8 years ago | 0

| accepted

Load more