Answered
Why do I have error during usage of state.time for non-constant boundary condition ?
You need to write your boundary conditions <http://www.mathworks.com/help/pde/ug/nonconstant-boundary-object-specification.html ...

10 years ago | 2

| accepted

Answered
How to resume genetic algorithm after x number of generations?
The penalty value relates only to nonlinear constraints. You are correct, the penalty value is not reported in the output struct...

10 years ago | 0

| accepted

Answered
In fmincon function, how can I impose non-strict constraints?
There is a tolerance called |TolCon| that gives the wiggle room for constraint violation. So, if you have options such as op...

10 years ago | 1

| accepted

Answered
how to minimize a parameter
Perhaps <http://www.mathworks.com/help/matlab/math/example-curve-fitting-via-optimization.html this example will help>. Alan ...

10 years ago | 0

Answered
How can I use fminunc or fminsearch to minimize and f-divergence measure?
I don't know why you think that |fminunc| and |fminsearch| take scalar inputs, when their documentation clearly states that they...

10 years ago | 1

| accepted

Answered
parabolic not solving 3D problem for constant boundary conditions
If, as you say, your boundary conditions have the solution _u_ specified as constants on all exterior surfaces, then plotting th...

10 years ago | 0

Answered
Converting expression to matlab function in acceptable format
<http://www.mathworks.com/help/optim/examples/using-symbolic-mathematics-with-optimization-toolbox-solvers.html This example sho...

10 years ago | 1

Answered
Hessian in optimValues of fminunc
While I am not sure that I understand your question, it seems that you have an analytic expression for the Hessian you want to p...

10 years ago | 0

| accepted

Answered
Different materials using PDE tool
Unfortunately, I don't think that you can do exactly what you want at this point in time. Ideally, you would have different laye...

10 years ago | 1

| accepted

Answered
How can I add a local heat source (not a uniform global) in heat transfer model using PDE toolbox?
You can set space-varying boundary coefficients or problem coefficients. The syntax depends on your MATLAB version. See <http://...

10 years ago | 0

Answered
How to fix error "Error using reshape To RESHAPE the number of elements must not change." when I am using pdegrad?
I think that you need to compute |pdegrad| at each time separately. So try [ux1,uy1] = pdegrad(p,t,u(:,1)); [ux2,uy2] = ...

10 years ago | 0

Answered
Genetic algorithm with non linear constraints
Sorry, as documented, <http://www.mathworks.com/help/optim/ug/writing-constraints.html#br9p_ry no nonlinear solver ensures that ...

10 years ago | 0

| accepted

Answered
What does it mean plotAlongY(p,u,0) in "Nonlinear Heat Transfer in a Thin Plate" example?
If you have the toolbox, you can execute edit plotAlongY to see how the function is programmed. Feel free to extend it h...

10 years ago | 0

| accepted

Answered
plot gradient of pde
Use |pdeplot| with the |xydata| name-value pair set to Ex or Ez. You could even set |xydata| to Ex and |zdata| to Ez. Alan We...

10 years ago | 0

Answered
In pdetool for heat transfer, the heat source Q is not a fixed value for me. Suppose I've matrix for Q or a sinusoidal. So how can I set the the value of Q for a variable heat source.
You can specify coefficients as strings <http://www.mathworks.com/help/pde/ug/scalar-coefficients-in-string-form.html using thes...

10 years ago | 0

Answered
How to set initial condition on a particular edge for pde?
<http://www.mathworks.com/help/pde/ug/initial-conditions.html See the documentation on initial conditions>. Alan Weiss MAT...

10 years ago | 0

Answered
Implementing Radiative Boundary Conditions in PDE Toolbox
You have a nonlinear equation, so you need to use a nonlinear solver. I followed your script exactly (with the |Block.stl| geome...

10 years ago | 1

Answered
Solving Nash bargaining model
I think that you might have to resign yourself to obtaining numerical solutions, rather than analytic solutions in closed form. ...

10 years ago | 0

Answered
How to write non linear constraint function in a genetic algorithm optimization toolbox?
<http://www.mathworks.com/help/optim/ug/writing-constraints.html#brhkghv-16 The documentation for writing nonlinear constraints ...

10 years ago | 0

Answered
How can I use outputs of the objective function as the equality constraints in fmincon
It is possible that the documentation of <http://www.mathworks.com/help/optim/ug/objective-and-nonlinear-constraints-in-the-same...

10 years ago | 0

Answered
Constraining to specific values during an optimisation
It is barely possible that you can use a combination of options to do what you want. I assume that you have no constraints other...

10 years ago | 0

Answered
Optimization Apllication Error and doesn't open
This sounds like an installation issue. Please contact <http://www.mathworks.com/support/contact_us/ technical support>. Alan...

10 years ago | 0

Answered
Error in writing c-coefficient as a function of unknown solution u
<http://www.mathworks.com/help/pde/ug/scalar-coefficients-in-string-form.html As the documentation states>, |Use .*, ./, and .^ ...

10 years ago | 0

| accepted

Answered
how can I accelerate the execution of a function in matlab?
I would say that the way to get better speed on this problem is to avoid using the simulated annealing algorithm. The |intlinpro...

10 years ago | 0

Answered
How to Change Domain
I believe that this equation falls easily into the domain of Partial Differential Equation Toolbox. You seem to have two space d...

10 years ago | 0

Answered
lngamma, complex argument
You probably should try to use the function |gammaln| instead. Alan Weiss MATLAB mathematical toolbox documentation

10 years ago | 0

Answered
Minimization with discrete variable
If you can specify your problem as a <http://www.mathworks.com/help/optim/linear-programming-and-mixed-integer-linear-programmin...

10 years ago | 0

Answered
Patternsearch polls out of mesh points
The behavior is, in fact, due to the |ScaleMesh| option being |'on'|. I did not realize before how large the |ScaleMesh| option ...

10 years ago | 0

| accepted

Answered
constraint optimization with alternatives under specific conditions
Your problem looks straightforward enough for |fmincon|. You simply have to write your <http://www.mathworks.com/help/optim/ug/w...

10 years ago | 1

Answered
How to define c-coefficient as a u function in nonlinear pde?
Did you consult <http://www.mathworks.com/help/pde/pde-coefficients.html the documentation>? In particular, <http://www.mathw...

10 years ago | 0

Load more