Answered
pdebound function form only Dirichlet boundary conditions
I wonder if you simply need to change the signature of your function to function [qmatrix,gmatrix,hmatrix,rmatrix] = pdeboun...

10 years ago | 0

Answered
lsqnonlin First order optimality?
I am sorry, but I have a hard time understanding your problem. The message you get is not an error message, it is an exit messag...

10 years ago | 0

Answered
Simplest way to calculate the maximum
It depends on whether you have a univariate polynomial (just one variable) or multidimensional polynomial. For univariate, yo...

10 years ago | 1

| accepted

Answered
How to create internal boundary conditions using "IF" function to solve PDEs
If I understand you correctly, then I think that you have to change the geometry of your problem to have a hole. It doesn't s...

10 years ago | 0

| accepted

Answered
How can I integrate a m.file consist of functions, input and output into MATLAB GUI
You should probably look at an example of a GUI and how the callback gets implemented. <http://www.mathworks.com/matlabcentral/f...

10 years ago | 0

Answered
GA: How to create chromosomes with n genes evaluated with a fitness function measunring m parameters for each one?
It sounds to me as if you have an integer optimization problem. It sounds like each population member should be a permutation of...

10 years ago | 0

Answered
Are the region structure fields (region.x, .y, .z) the centroids of the elements in PDE toolbox (3D Geometry)?
The solvers need to evaluate the coefficients at various locations depending on the type of element, linear or quadratic. Integr...

10 years ago | 0

| accepted

Answered
Non linear Optimization problem.
<http://www.mathworks.com/help/optim/ug/choosing-a-solver.html#brhkghv-19 As the Optimization Decision Table shows>, |fmincon| i...

10 years ago | 0

| accepted

Answered
Bintprog exceeds the max time for one set of parameters but optimizes the function in under a minute for other sets of parameters. What is wrong and how do I fix it?
The successful run that you showed has the linear programming relaxation arrive at an integer solution. You cannot expect to be ...

10 years ago | 0

Answered
Writing a function with many outputs, and maximizing over the first output
It is possible that a <http://www.mathworks.com/help/gads/output-functions-for-globalsearch-and-multistart.html global output fu...

10 years ago | 0

Answered
Rank Deficient Warning from fmincon
You can try some of the <http://www.mathworks.com/help/optim/ug/when-the-solver-might-have-succeeded.html#br44i8w suggestions in...

10 years ago | 0

Answered
What can I do to make a GA spread the intial population over a larger area
<http://www.mathworks.com/help/gads/population-diversity.html The documentation> has suggestions about setting the initial diver...

11 years ago | 0

Answered
"too many output arguments". gamultiobj Optimization Toolbox
Your objective function looks vectorized. Did you set options to have vectorized function evaluations? options = gaoptimset(...

11 years ago | 0

Answered
Non linear optimization using 'optimization toolbox
The problem is smooth: your objective function is rational. Yes, <http://www.mathworks.com/help/optim/ug/choosing-a-solver.html#...

11 years ago | 0

| accepted

Answered
How to get the Values of nonlcon in gamultiobj?
Currently, you cannot obtain the value of the nonlinear constraint functions as a field in the |gamultiobj state| structure in a...

11 years ago | 1

| accepted

Answered
Solving Heat Equation With Spatially Varying Thermal Conductivity
<http://www.mathworks.com/help/pde/ug/scalar-coefficients-in-string-form.html The documentation> describes how to include coeffi...

11 years ago | 0

Answered
in MATLAB PDE Toolbox App, I've multiple objects (Rectangular shaped) in one file. For multiple objects I'd like to specify the PDE coefficients differently. How can I specify the different PDE coefficients for different objects.
After you have drawn your rectangles, select *PDE > PDE Mode*. Then double-click each rectangle to enter its coefficients. Al...

11 years ago | 1

| accepted

Answered
What version of Matlab include the function intlinprog ?
<http://www.mathworks.com/help/optim/release-notes.html |intlinprog| was introduced in R2014a>. To use this functionality you wi...

11 years ago | 0

Answered
output function for ga
An output function only runs at the end of an iteration, and has access to variables described in the <http://www.mathworks.com/...

11 years ago | 0

Answered
Interior-point algorithm vs SQP algoritm
Perhaps you are running into an <http://www.mathworks.com/help/optim/ug/choosing-a-solver.html#btr9d6u inaccuracy due to using a...

11 years ago | 1

| accepted

Answered
Standard errors from hessian using fminunc/fmincon
You might not have read <http://www.mathworks.com/help/optim/ug/hessian.html the documentation of the Hessian output> for |fminu...

11 years ago | 0

Answered
linprog error message: the dual appears to be infeasible (and the primal unbounded).
I cannot reproduce your result. When I entered the following, I got an answer: A =[ 0.5 -1 0 0 0 0 1 -1 0 0 0 0 -...

11 years ago | 0

Answered
how can we know the optimal solution from GA in MATLAB is the best solution? if all the results are always different from each other after run it in several times.
<http://www.mathworks.com/help/optim/ug/when-the-solver-succeeds.html#brhkghv-65 The Optimization Toolbox documentation> discuss...

11 years ago | 1

Answered
How to do optimisation with multiple input variables?
In Optimization Toolbox you have to put all your control variables (those that you can change to try to find a minimum) into one...

11 years ago | 0

Answered
How can I specify different PDE coefficients for different regions in a 3D geometry using PDE toolbox?
Currently, subdomains are not supported for 3-D geometry. However, you can write <http://www.mathworks.com/help/pde/ug/pde-coeff...

11 years ago | 0

Answered
Why does patternsearch decrease mesh size without function evaluation?
We didn't see your |patternsearch| call. Perhaps your bounds are well within the rather large initial mesh that you gave, so tha...

11 years ago | 0

Answered
Why GA becomes error when we try to click running in second time?
I imagine that your nonlinear constraint function returns complex or |Inf| or |NaN| results for some population members. Remembe...

11 years ago | 0

| accepted

Answered
How to output and save x1 and x2 after each run / generation?
Use an <http://www.mathworks.com/help/gads/genetic-algorithm-options.html#f17837 Output Function>. For an example (using differe...

11 years ago | 0

Answered
How to add a constraint in lsqonlin minimization?
For that kind of nonlinear constraint, use |fmincon| instead of |lsqnonlin|. See the <http://www.mathworks.com/help/optim/ug/cho...

11 years ago | 0

Answered
Does the value of nonlinear inequality constraints matter as long as he is smaller zero?
|fmincon| uses the value of the nonlinear constraint to indicate the level of feasibility, and therefore to estimate how large a...

11 years ago | 1

| accepted

Load more