Answered
How to correct ''Function definitions are not permitted in this context.''
If I understand you correctly, you stored that whole file as |multiobj.m|. Instead, just store this as |multiobj.m|: functi...

8 years ago | 0

Answered
Parameter Optimization using Simulated Annealing
Sure, you can do anything you want. It might not be a good idea, but feel free. Write an objective function that is, say, the...

8 years ago | 1

| accepted

Answered
How can I set the numbers of decimals (precision) of the solution of fminunc?
It is very difficult to know how the option settings affect the resulting solution accuracy. The only solver I know that is reas...

8 years ago | 0

Answered
PDE Toolbox thermalProperties() function handles
Yes, you can. Sorry, the documentation is not yet explicit. Define a function |f = myfun(region,state)| and pass |@myfun| as ...

8 years ago | 1

| accepted

Answered
Stacked multi-cuboid geometries with PDE Toolbox for thermal analysis
No, you can currently create a stack of cuboids only with the same width and depth. They can have different thicknesses, <https:...

8 years ago | 1

| accepted

Answered
I need to solve or just plot a function p(x,y) of two variables knowing just its gradient which is a vector, any suggestions
Use the formula _p(x,y) = p(0,0) + integral([0,0],[x,y],dot(gradp,t))_ where I mean the line integral (not MATALAB commands) wit...

8 years ago | 0

Answered
I have problem with optimoptions
It is possible that you need to reinstall Optimization Toolbox. Or perhaps the following less drastic alternative will suffice: ...

8 years ago | 0

| accepted

Answered
Save each generation values in structure form Genetic Algorithim
To save intermediate values, use an <https://www.mathworks.com/help/gads/custom-output-function-for-genetic-algorithm.html outpu...

8 years ago | 0

Answered
how to set lower and upper bounds for variables to be 0.5 and 2.5 with step 0.5
Use <https://www.mathworks.com/help/gads/mixed-integer-optimization.html Mixed Integer Optimization>. Have a variable |x(1)| be ...

8 years ago | 0

Answered
Genetic Algorithm with nonlinear Constraints and Vectorization
Thank you for including a file so we could reproduce the issue. The problem is that the quantile function returns a row vecto...

8 years ago | 0

| accepted

Answered
In Genetic Algorithm optimization, what is the y-axis of distance plot?
Examine the distance plot function: edit gaplotdistance You see that the plot is of the average Euclidean distance betwe...

8 years ago | 0

Answered
How to get seed used in the optimization problem?
If you are using |ga|, see <https://www.mathworks.com/help/gads/reproducing-your-results-1.html Reproduce Results>. For |simulan...

8 years ago | 0

Answered
How can I terminate the ga (genetic aclgorithm) optimizer based on elapsed cpu time?
You can define you own stopping criteria by using an <https://www.mathworks.com/help/gads/custom-output-function-for-genetic-alg...

8 years ago | 1

| accepted

Answered
Turn off display for fsolve during a loop
Your call uses an undocumented (but still supported) syntax for passing extra parameters. Place your options into the third a...

8 years ago | 0

| accepted

Answered
How to control to range of each variable in GA
If you have access to Global Optimization Toolbox, you can try the <https://www.mathworks.com/help/gads/mixed-integer-optimizati...

8 years ago | 0

Answered
How can I get more information about the GA process?
The way to monitor an optimization is to use an output function. For |ga|, there is a <https://www.mathworks.com/help/gads/genet...

8 years ago | 0

| accepted

Answered
Can I set a max change in optimization variables?
You can change the behavior of |fmincon| only indirectly, through options. Perhaps using the default |'interior-point'| algorith...

8 years ago | 0

Answered
How can I solve optimization problem without using Symbolic Math Toolbox?
Sure, you can use Optimization Toolbox. You also need the constraint that all the _q_i_ are nonnegative, otherwise the problem i...

8 years ago | 1

| accepted

Answered
Why using genetic algorithm at the end of max generation i get the best value of the last generation and not the best value found so far?
Is there anything random about your fitness function? If so, |ga| can give surprising results, because it assumes that every val...

8 years ago | 1

| accepted

Answered
Finding limits such that integral achieves desired value
I believe that you would probably save time by solving numerically with |fzero| rather than using symbolic math. For example, th...

8 years ago | 0

| accepted

Answered
PlotFcns how to display progress in the number of nodes
If you are using the built-in |@optimplotmilp| function for making your plot, and it shows no branch-and-bound steps, then |intl...

8 years ago | 0

Answered
Parallel Computing is taking longer than without parallel
Check out the first bullet item in <https://www.mathworks.com/help/optim/ug/improving-performance-with-parallel-computing.html t...

8 years ago | 1

| accepted

Answered
Evaluating symbolic expression and handing them to optimisation problem: How should I introduce symbolic variables to ga function?
You should convert your symbolic variables to a MATLAB function before trying to pass them to a solver such as |ga|. See <https:...

8 years ago | 0

Answered
Finding minimum efficiency reduction in multiple turbine setup (fmincon)
|fmincon| is for optimizing smooth functions with smooth constraints. By putting |find| and |heaviside| statements in your scrip...

8 years ago | 0

Answered
How can I save the steps (summary of the steps) of a fmincon optimization?
You can save the history of the iterations using an <https://www.mathworks.com/help/optim/ug/output-functions.html output functi...

8 years ago | 0

Answered
Linear Optimization wih R2017b: Are the constraints correctly defined? (each constraint has multiple entries) - current result is that the Intlinprog stopped
Based on what you have said, I strongly suspect that there are no integer feasible points for your problem. If you know of an in...

8 years ago | 0

Answered
What is the right way to treate "Optimization terminated: no feasible point found." ???
In addition to what John and Walter said, <https://www.mathworks.com/help/optim/ug/when-the-solver-fails.html#br44i73 the docume...

8 years ago | 0

Answered
problem using fminsearch, as parameters that I want to optimize is not input for the handle function
This is a question of thinking deliberately. If I understand you correctly, you want to find the control variable |lambda = (lam...

8 years ago | 0

Answered
Make Bayesian Optimization (bayesopt) model positive
If I understand you correctly, your objective function is stochastic, but always returns positive values. If that is true, th...

8 years ago | 0

| accepted

Answered
Modifying results from bayesopt
In order to do this, I think that you are going to have to do two things: * Evaluate the point manually. * Start the Bayesia...

8 years ago | 0

| accepted

Load more