답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 3

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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...

거의 8년 전 | 0

답변 있음
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 ...

거의 8년 전 | 0

| 수락됨

답변 있음
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...

거의 8년 전 | 1

| 수락됨

답변 있음
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...

거의 8년 전 | 0

| 수락됨

답변 있음
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|...

거의 8년 전 | 0

답변 있음
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...

거의 8년 전 | 0

| 수락됨

답변 있음
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 = []; ...

거의 8년 전 | 0

더 보기