Beantwortet
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...

mehr als 7 Jahre vor | 0

Beantwortet
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...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 7 Jahre vor | 1

Beantwortet
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...

mehr als 7 Jahre vor | 1

Beantwortet
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...

mehr als 7 Jahre vor | 3

| akzeptiert

Beantwortet
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...

mehr als 7 Jahre vor | 1

Beantwortet
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...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 7 Jahre vor | 0

Beantwortet
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...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
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>...

mehr als 7 Jahre vor | 0

Beantwortet
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...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 7 Jahre vor | 0

Beantwortet
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...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
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-...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
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)...

mehr als 7 Jahre vor | 0

Beantwortet
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...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 7 Jahre vor | 0

Beantwortet
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 ...

mehr als 7 Jahre vor | 0

Beantwortet
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...

mehr als 7 Jahre vor | 2

| akzeptiert

Beantwortet
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...

mehr als 7 Jahre vor | 2

| akzeptiert

Beantwortet
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...

mehr als 7 Jahre vor | 0

Beantwortet
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 ...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
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|...

mehr als 7 Jahre vor | 0

Beantwortet
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...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
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 = []; ...

fast 8 Jahre vor | 0

Mehr laden