Answered
non constant PDE toolbox coefficients with second order derivatives.
No, the state structure does not support |uxx| or |uyy|, <https://www.mathworks.com/help/pde/ug/f-coefficient-for-specifycoeffic...

9 years ago | 0

| accepted

Answered
Why 'active-set' is not working with linprog in matlab2016b?
<https://www.mathworks.com/help/optim/release-notes.html The release notes> for R2016b are quite explicit: " |linprog: 'active-s...

9 years ago | 0

| accepted

Answered
how to define connection factors for supply chain for GA/fmincon optimization?
Is that supposed to be an objective function? Your function returns a 3-by-2 matrix that is simply a reshaping of the inputs. An...

9 years ago | 0

Answered
When using Optimoptions, how can I tell if an option was user-set, or a default.
I think that you can simply check the value of |options.Display|. options = optimoptions('lsqcurvefit','Display','none'); ...

9 years ago | 1

Answered
lsqcurvefit not finding best fit
You probably need to set larger finite differences on your |a(5)| and |a(6)| coefficients. Remember, |lsqcurvefit| is for differ...

9 years ago | 0

| accepted

Answered
How would the "a" and "c" coefficients be defined in a coupled non-linear set of 2 PDEs?
Assuming that you can represent your geometry and boundary conditions properly, then the answer is yes, you can formulate your c...

9 years ago | 0

| accepted

Answered
Display all function evaluations in fminsearch iterative display
There is another example that shows |patternsearch| points: <https://www.mathworks.com/help/gads/examples/pattern-search-climbs...

9 years ago | 0

| accepted

Answered
Where do I get the theory for the multiobjective genetic algorithm and hybrid function fgoalattain?
The theory behind the goal attainment algorithm is <https://www.mathworks.com/help/optim/ug/multiobjective-optimization-algorith...

9 years ago | 0

| accepted

Answered
Undefined function 'gaoptimset' for input arguments of type 'char'.
Ensure that you have Global Optimization Toolbox installed by running ver If you don't have it, then reinstall it. If you...

9 years ago | 0

Answered
how to tell apart faces of a 3d geometry for pde model?
Thanks for correcting the description. If you zoom in to an edge near the |F3| label, you can see that |F3| is the ring that bou...

9 years ago | 0

| accepted

Answered
Computation time of PDE Toolbox increases drastically when defining the parameter 'f' as a function handle that uses state.u as input
I am not sure whether you are using |ht1| to represent time, in which case I think that you would do better not to use a global ...

9 years ago | 0

Answered
Setting up a multiobjective generic optimization
It sounds to me as if you chose the solver first, before really thinking about what you are trying to do. To me, it sounds as if...

9 years ago | 0

Answered
plotting the model after setting initial condition (pde toolbox)
Sure, use <https://www.mathworks.com/help/pde/ug/pdeplot3d.html |pdeplot3D|> and plot each item you want to see separately. A...

9 years ago | 0

Answered
How do I display/save all the optimized values (design variables and corresponding value objective functions) of gamultiobj?
You can use an <https://www.mathworks.com/help/gads/genetic-algorithm-options.html#f17837 Output Function> to report or save the...

9 years ago | 0

| accepted

Answered
How to set binary variable in fminimax optimization.
|fminimax| does not allow for binary variables, only continuous variables. I do not know of a built-in solver that can help y...

9 years ago | 0

| accepted

Answered
Create loop for mesh refinement and store the nodal coordinates (p) and elements (t) for each iteration
I believe that there is no affordance for specifying load at a single point. However, <https://www.mathworks.com/help/pde/ug/def...

9 years ago | 0

Answered
assign different objective function to different data sets in a loop
I am not at all sure that this will help you, but if your objective functions are all basically the same, but simply reflect dif...

9 years ago | 0

Answered
How can I extract the nodal coordinates and elements of a mesh obtained from pde toolbox in Matlab?
It depends on your toolbox version. For recent versions, using a PDEModel object, use <https://www.mathworks.com/help/pde/ug/mes...

9 years ago | 2

| accepted

Answered
How to create a function with a large number of variables, and get its gradient and Jacobian matrix,like following
If you have a Symbolic Math Toolbox license, you can work along the lines of <https://www.mathworks.com/help/optim/examples/usin...

9 years ago | 0

Answered
Why do I get an error with the Solve function
I suggest that you not try to solve this symbolically, but instead look for a numerical solution, using |fsolve| or some other w...

9 years ago | 1

Answered
simulation based optimisation with ga solver
Write an objective function that calls whatever you like, such as: function y = objfun(p) if p(1) = 1 y = fun1(p); ...

9 years ago | 0

| accepted

Answered
Optimal Binary Matrix solution
Your claimed solution does not satisfy your constraints. A*[0;1;1;0;1;0;0;0] ans = 1 1 1 0 ...

9 years ago | 1

Answered
how to build large objective function in Optimization Toolbox?
I don't know why you don't just use x = GRID\TT but you probably have a different problem in mind that you didn't tell us...

9 years ago | 1

| accepted

Answered
How does fminsearch generate initial simplex ?
The initialization is given in the <https://www.mathworks.com/help/matlab/math/optimizing-nonlinear-functions.html#bsgpq6p-11 |f...

9 years ago | 0

Answered
Genetic Algorithm with variables are binary, and in the form of an n by m matrix
You can easily use the existing MATLAB syntax to deal with your variables. Yes, you have to express your variables as a row vect...

9 years ago | 0

Answered
How to suppress warnings from fsolve method?
Sounds like you are interested in learning how to <https://www.mathworks.com/help/matlab/matlab_prog/suppress-warnings.html supp...

9 years ago | 0

Answered
GlobalSearch (global optimization) evaluates initial point only
I suggest that you try using |MultiStart| instead. The |GlobalSearch| algorithm tries not to run the local solver from very many...

9 years ago | 0

Answered
Genetic algorithm, nonlinear constraints, TolFun how to get good results ?
I believe that the best way to get better answers is to use a better algorithm. In this case, first see whether your fitness fun...

9 years ago | 0

Answered
hi all, is it possible to put more then two tasks in options?? like i want three "options = optimset('MaxFunEvals',50000,'MaxIter',30000',MaxFunInterval',1020');"...but its showing error.... do i need to use another options for third one????
There is no |MaxFunInterval| option. Did you mean |MaxFunEvals|? Look in the function reference page for the solver you are usin...

9 years ago | 0

| accepted

Answered
Differential Equation Parameter Optimization with Free Time Parameter
There is too much here for me to be able to diagnose anything in short order. However, I wonder whether you might just need to t...

9 years ago | 0

Load more