Answered
Thermal anaysis Using PDE Toolbox
While I don't know exactly what kind of problem you have, generally, PDE Toolbox does not yet support multi-part assemblies. Now...

9 years ago | 0

Answered
How to find a constrained distribution within an array that results in an optimum.
I suppose that when you say that you want to "optimize" |y|, you want to minimize or maximize the sum of the elements in that mu...

9 years ago | 2

| accepted

Answered
How to set options of particleswarm ?
What version of MATLAB do you have? |particleswarm| was introduced in R2014b. Do you have a Global Optimization Toolbox licen...

9 years ago | 0

| accepted

Answered
optimtool to be removed?
I'm sorry that the note caused you concern. Only the Optimization app ( |optimtool|) will be removed, because the underlying sof...

9 years ago | 0

Answered
How do I fit an arbitrary function to data using LSQNONLIN ?
Your objective is piecewise constant (you have |round| calls). Like all nonlinear Optimization Toolbox solvers, |lsqnonlin| is b...

9 years ago | 1

Answered
using genetic algorithm optimizer to figure out points that satisfy the imposed constraints
You did not show us how you defined your objective function. Here is one that will work: fun = @(x)1; Alan Weiss MATLA...

9 years ago | 0

Answered
Run genetic algorithm from mps problem file
If your problem is really an MILP problem, with no nonlinear constraints, then you should use |intlinprog|, and not a genetic al...

9 years ago | 0

| accepted

Answered
how do i create a crater (upside down hollow dome) and include it as a geometry in a PDE model?
Try using <https://www.mathworks.com/help/pde/ug/create-and-view-3-d-geometry.html#buv3nfg-1 3-D geometry from a point cloud>. Y...

9 years ago | 0

| accepted

Answered
Applying MATLAB's Nonlinear Heat Transfer In a Thin Plate to a 3D Geometry
Take a look at the <https://www.mathworks.com/help/pde/ug/pdeplot3d.html |pdeplot3D| reference page>. You will see that |XYData|...

9 years ago | 0

Answered
Options for Genetic Algorithm don't work
For R2014b use |gaoptimset|. For R2014b, use the correct option names, as <http://www.mathworks.com/help/releases/R2016a/gads/op...

9 years ago | 1

Answered
Formulate linear programming problem
I think that you can formulate this as an integer problem. Let each object be either assigned a +1 to mean it goes to son A, or ...

9 years ago | 0

Answered
contiguous surface for pde problems.
For such a vague question, I can give only a generic answer: take a look at <https://www.mathworks.com/help/pde/getting-started-...

9 years ago | 0

Answered
intlinprog: multicore support possibile?
There are some documented <https://www.mathworks.com/help/optim/ug/tuning-integer-linear-programming.html suggestions for improv...

9 years ago | 0

Answered
linear programming involving sum of element-wise product of two matrices
Yes, I believe that |linprog| can address this problem. The |linprog| problem formulation is to minimize, for a given column vec...

9 years ago | 1

Answered
Help with Stopping Criteria when using 'gamultiobj' for Multiobjective Optimization.
I am not at all sure that I understand what you are trying to do, but it is possible that an <https://www.mathworks.com/help/gad...

9 years ago | 0

Answered
How to display every parameter value at every iteration while using Genetic algorithm
Use an <https://www.mathworks.com/help/gads/custom-output-function-for-genetic-algorithm.html Output Function> to report whateve...

9 years ago | 1

Answered
How to properly use fmincon and optimization?
It sounds like |lsqcurvefit| is eminently suited to your problem, except for the scaling issue of too-small function values. I w...

9 years ago | 1

Answered
Plot two solutions of PDE from different space.
I suppose that the first mesh points are in a vector |x1|, and the second set of mesh points is in a vector |x2|. I also assume ...

9 years ago | 1

Answered
linprog inconsistent messages I am using linprog, and not supplying initial starting value, i.e., my code reads as follows options = optimoptions('linprog','Algorithm','interior-point','Display','iter'); x = linprog(f,A,b,Aeq,beq,lb,ub,options); I g
You are using a version of MATLAB that requires an |x0| input. Yet not all the |linprog| algorithms accept |x0|. I suggest that ...

9 years ago | 2

| accepted

Answered
fminunc: Too many output arguments
In your options you set |GradObj| to |'on'| and |Hessian| to |'user-supplied'|. Yet your objective function does not return the ...

9 years ago | 1

| accepted

Answered
Setting optimality tolerance for fminunc
Yes, indeed. R2016a is where |OptimalityTolerance| was introduced. More information is in the <http://www.mathworks.com/help/rel...

9 years ago | 0

| accepted

Answered
How fmincon can manipulate continuous and discrete variables ?
No, |fmincon| does not use discrete variables, only continuous. Alan Weiss MATLAB mathematical toolbox documentation

9 years ago | 0

| accepted

Answered
How to plot Pareto Front for 4 Objective Functions ?
I have no idea how to plot such a thing. You might want to try looking at four different <https://www.mathworks.com/matlabcentra...

9 years ago | 0

Answered
Optimal portfolio weights maximizing the expected utility function?
You simply need to change your objective function reference to ObjectFunction = @(x)expectedutility(x,blockP1,gamma) Thi...

9 years ago | 0

| accepted

Answered
How to check optimized values after stopping the program midway?
You can use a <https://www.mathworks.com/help/optim/ug/plot-functions_br5474z.html plot function> to monitor your optimization. ...

9 years ago | 0

| accepted

Answered
UseParallel Option with fmincon
Well, if you supply the gradients and set the appropriate options (set |SpecifyObjectiveGradient| and |SpecifyConstraintGradient...

9 years ago | 0

| accepted

Answered
How do I set a custom algebraic upper/lower bound on lsqcurvefit, instead of a constant one?
For that, you will have to use |lsqlin| (if it is applicable) or |fmincon| if it is not applicable. I cannot be sure, based on y...

9 years ago | 0

Answered
How can I set up constraints in the Optimization toolbox?
Get the variables into your workspace and then call |fmincon| or whatever solver you are using. Something like this: A = yo...

9 years ago | 0

| accepted

Answered
HOW TO GENERATE REGULAR SQUARE MESHES INSTEAD OF IRREGULAR TRIANGULAR MESHES, OVER A 2D REGION TO SOLVE PARTIAL DIFFERENTIAL EQUATION.
I'm afraid that you cannot use a rectangular mesh with PDE Toolbox. The toolbox uses triangular meshes only. Alan Weiss MA...

9 years ago | 1

| accepted

Answered
How to solve linear constraint in genetic algorithm with population type of Bit string .?
1. Please format your question using the |{} Code| button as appropriate so that we can read your code. 2. You probably don't...

9 years ago | 0

| accepted

Load more