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

más de 10 años hace | 2

| aceptada

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 1

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 1

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 1

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 1

| aceptada

Respondida
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://...

más de 10 años hace | 0

Respondida
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] = ...

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 1

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 0

Respondida
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 .^ ...

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 1

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

más de 10 años hace | 0

Cargar más