Answered
How to define Boundary Load dependent on both region.x and region.y?
To apply boundary conditions that are functions of position, see <https://www.mathworks.com/help/pde/ug/steps-to-specify-a-bound...

7 years ago | 0

Answered
Is there any way to speed up the PDE solver with the parallel computing toolbox?
Sorry, currently Partial Differential Equation Toolbox(TM) does not use parallel computing. Alan Weiss MATLAB mathematical...

7 years ago | 1

| accepted

Answered
How do you properly write a function to use fmincon from optimization tool?
Take a look at the <https://www.mathworks.com/help/optim/ug/example-nonlinear-constrained-minimization.html Getting Started exam...

7 years ago | 1

Answered
how to convert qp to quadprog
|qp| is from a very old version of Optimization Toolbox(TM). It is relatively straightforward to convert |qp| calls to |quadprog...

7 years ago | 1

Answered
How can I express sum of an optimvar raised to a power
There are several problems with what you are trying to do. As <https://www.mathworks.com/help/optim/ug/supported-operations-on-o...

7 years ago | 3

| accepted

Answered
Why I get the minus result for linear optimization?
You are seeing the underlying solver's intermediate calculations. But if you look at the returned function value, you get the co...

7 years ago | 1

Answered
Is there a way to evaluate the first iteration of patternsearch as other iterations?
Indeed, |patternsearch| runs an initial iteration to ensure that the problem is formulated correctly so that there are no errors...

7 years ago | 0

| accepted

Answered
Curve Fit Transient Functions using Optimization
Perhaps <https://www.mathworks.com/help/optim/ug/nonlinear-data-fitting-example.html this example> is relevant. Alan Weiss ...

7 years ago | 0

Answered
Multi variable Simulated Annealing with different bounds
Global Optimization Toolbox solvers, like Optimization Toolbox(TM) solvers, require you to put all your variables into one vecto...

7 years ago | 0

| accepted

Answered
Minimization problem with constraint
I haven't tried this, but it sounds straightforward. Decision variables: |x(1) = x|, |x(2) = y|, |x(3) = R|. 100 nonlinear...

7 years ago | 0

| accepted

Answered
How to add variables to the Plot Fcn?
Perhaps you are looking for how to <https://www.mathworks.com/help/optim/ug/passing-extra-parameters.html pass extra parameters>...

7 years ago | 0

Answered
how can i increase the speed of this program?
While I could not read much of your code (in the future, please mark code with the |{} Code| button), there are several deficien...

7 years ago | 0

| accepted

Answered
Can MATLAB Coder generate C code for the function 'fmincon' from Optimization Toolbox?
Currently, fmincon does not support code generation. Sorry. Alan Weiss MATLAB mathematical toolbox documentation P.S. fminc...

7 years ago | 0

| accepted

Answered
Optimization of parameters for a calculated result having an experimental result
Perhaps along the lines of <https://www.mathworks.com/help/matlab/math/example-curve-fitting-via-optimization.html Curve Fitting...

7 years ago | 0

Answered
When does fmincon's interior-point algorithm accept a larger function value while searching for the optimum?
You can see the <https://www.mathworks.com/help/optim/ug/constrained-nonlinear-optimization-algorithms.html#brnpd5f interior-poi...

7 years ago | 0

| accepted

Answered
How can I call intermediate functions within fmincon?
It is possible that you could use the technique in <https://www.mathworks.com/help/optim/ug/objective-and-nonlinear-constraints-...

7 years ago | 0

| accepted

Answered
For a loop , to carry out element by element multiplication is bsxfun better than conventional element by element.
Here are the results of one experiment that I just tried: A = randn(1e4) + 1i*randn(1e4); B = randn(1e4) + 1i*randn(1e4)...

7 years ago | 0

Answered
How to operate genetic algorithm optimization for output values in given range?
I have two different but related comments: 1. If you have a feasibility constraint such as certain outputs have to be in a ce...

7 years ago | 1

| accepted

Answered
How can I specify non constant PDE boundary conditions on a sphere?
You cannot easily change the internal face creation procedure. However, you can create nonconstant boundary conditions on that s...

7 years ago | 1

| accepted

Answered
optimization of an objective function subjected to aggregated constraint
I suppose that the _G_n_ are the control variables and that _R_t_ are data. In that case it looks like a standard sort of linear...

7 years ago | 0

Answered
Any body get this Error before when using GA
Sounds like maybe a bug. What MATLAB version are you using? Can you give reproduction code? From the error message, it seems ...

7 years ago | 0

Answered
Inconsistent data in fmincon output structure
The key word is "relative." The relative first-order optimality measure is (usually) the ratio of the final to the initial measu...

7 years ago | 2

| accepted

Answered
Solving PDE of electrothermal coupling with f coefficient in stationary
If I understand your question, you would like |f| to represent the interpolated squared gradient of the previous solution to |Em...

7 years ago | 2

| accepted

Answered
Different values in ga variables.
If your objective function is smooth, you should not use |ga|, but instead use |fmincon| starting from a variety of initial poin...

7 years ago | 0

Answered
why ga can not disperse population in a feasible area ??
The real question is why are you using |ga| to solve this problem? If your objective function is smooth, use |fmincon| starting ...

7 years ago | 0

| accepted

Answered
bayesopt: how do I know when the hyperparameter optimization has converged?
Sorry to say, this is almost impossible to determine. It is a very difficult problem to determine stopping conditions for any op...

7 years ago | 1

| accepted

Answered
How to use fminsearch with a symbolic function with a variable number of symbols?
Before running |fminsearch|, convert your symbolic expression to a MATLAB function by using |matlabFunction|: myfun = matla...

7 years ago | 0

| accepted

Answered
How can I do integration for this function of two variable
I think that you have a few bad coding practices. The |sec| function works on angles in radians, but you have factors of |pi|...

7 years ago | 0

Answered
How to optimise five equations and four unknowns?
You have five equations in four unknowns, which means that you probably have no solution to your problem as stated. Consider sol...

7 years ago | 0

| accepted

Answered
Optimization with MultiStart with nonlinear constraint on some of the parameters
Try writing a function file to represent your nonlinear constraints: function [c,ceq] = nonlcon_EMT(x,r_nm) ceq = []; ...

7 years ago | 0

Load more