Answered
How to use fmincon and/or similar optimilisation constraints
fmincon requires that you put your problem into the syntax that it expects. It expects that you have some parameters, say a vect...

12 years ago | 0

Answered
Initialization values are no changing in an ODE data fitting with lsqnonlin. Is there a way to check initialization values faster? this method takes too long
Without reading your code in detail, I can suggest the following: * Don't set tolerances below eps ~ 2e-16. <http://www.mathw...

12 years ago | 0

Answered
Capture data in a vector or matrix from simulannealbnd (Global Optimization Toolbox)
Use an <http://www.mathworks.com/help/gads/simulated-annealing-options.html#bq26j8s-7 output function> to save the data. <http:/...

12 years ago | 0

Answered
How can I avoid trivial solution (norm(x) =0) for binary ga optimization?
If you have a vector of unknowns x(i) with each x(i) = 0 or 1, then include a linear constraint: A*x <= -1 where A is a r...

12 years ago | 1

| accepted

Answered
how to solve a system of boolean equations
I am not sure, but perhaps you can reformulate your problem as a binary integer programming problem, and then use the <http://ww...

12 years ago | 1

Answered
how does fmincon work
The algorithms fmincon uses are <http://www.mathworks.com/help/optim/ug/constrained-nonlinear-optimization-algorithms.html docum...

12 years ago | 4

Answered
Why does Pattern Search take so long?
Perhaps the Cache option should be 'off'. Please let us know if that makes a difference. If the problem is suitable for lsqno...

12 years ago | 3

| accepted

Answered
nonlinear heat transfer in a thin plate - error help
I am not sure that I understand you. If you have PDE Toolbox, you can enter edit heatTransferThinPlateExample This brings...

12 years ago | 0

Answered
Is it possible to generate *surface* pareto front for 3 objective functions and plot it?
Sure. function f = simple_multiobj2(x,a,b,c) x = x(:); a = a(:); b = b(:); c = c(:); % all column vectors f(1) = sqrt...

12 years ago | 5

| accepted

Answered
Population Formulation in GA
Indeed, 'goto' is not a valid MATLAB command. If you want to call a function named noD at that point in your program, just call ...

12 years ago | 0

Answered
how to write a nonliear constraint with a convriance matrix in FMINCON
If cov is a known matrix, and x is a column vector (set x0 as a column vector), then I think that c = x'*cov*x - V; shoul...

12 years ago | 1

| accepted

Answered
Least square fitting of experimental data
If you have Symbolic Math Toolbox, you can use matlabFunction to generate your function handles or program files. For examples r...

12 years ago | 0

| accepted

Answered
matlabFunction is too slow
I have no general advice. Perhaps if we saw a small snippet of your code we could help. It is possible that your Jacobian is ...

12 years ago | 0

| accepted

Answered
How i can solve an initial value problem in a system of differential equations?
<http://www.mathworks.com/help/matlab/math/boundary-value-problems.html The documentation of boundary value problems> has what y...

12 years ago | 0

Answered
Using fmincon for a black box optimization (through a simulation.exe file)
I don't understand exactly what your problem is, but perhaps you could <http://www.mathworks.com/help/optim/ug/when-the-solver-f...

12 years ago | 0

Answered
How do I format the problem for the Optimization Toolbox?
Please give us more information, such as * The objective function signature (function f = HeatExchanger(x)?) * The solver ca...

12 years ago | 0

| accepted

Answered
How to prevent objective function from becoming negative with the linprog solver (i.e minimum should be 0)
You can add a constraint that the cost must be positive. This is a linear constraint: -x1*constant1 -x2*constant2 <= 0 Se...

12 years ago | 0

Answered
How do I evaluate variables from my function at the optimum value and get them in the workspace?
If you consult the <http://www.mathworks.com/help/optim/ug/writing-objective-functions.html#bsj2rgd documentation for Optimizati...

12 years ago | 0

Answered
Warning-documentation files not found
Perhaps <http://www.mathworks.com/matlabcentral/answers/104025-why-is-the-formatting-of-my-matlab-documentation-broken this ques...

12 years ago | 0

Answered
costly anonymous function declaration for solving a equation system with parameters
Perhaps it would be faster for you to use <http://www.mathworks.com/help/optim/ug/passing-extra-parameters.html#brhkghv-10 neste...

12 years ago | 1

| accepted

Answered
replace some individuals in the current population using genetic algorithm, matlab
Selection gets you the parents. Mutation and crossover get you the children. So custom selection, mutation, and crossover functi...

12 years ago | 0

Answered
Fitting Complex data to complex model
If you want to ensure that your results are real, then reformulate your problem to be real. Express all complex numbers z by x +...

12 years ago | 0

Answered
Who can tell me how to use GA optimization tool to optimize two arrays?
I am sorry, I do not understand what you are asking. Does the <http://www.mathworks.com/help/gads/computing-objective-functions....

12 years ago | 0

Answered
How to optimize a specific logistic type equation using 'fminunc' and quasi-newton algorithm ?
<http://www.mathworks.com/help/optim/examples/nonlinear-data-fitting.html There is an example> showing how to solve this type of...

12 years ago | 0

Answered
Genetic algorithm - Thousands of variables
I think that you are unlikely to obtain a satisfactory answer from GA with that many variables. GA is a random search algorithm,...

12 years ago | 0

| accepted

Answered
R2013b Genetic Algorithm Stop Button not working?
As far as I know, the Pause and Stop buttons in the "Run solver and view results" pane work. In some previous versions of the to...

12 years ago | 0

Answered
Question regarding Genetic Algorithm
Perhaps you can encode your problem as integer. Set lb = zeros(1,N), ub = 2+lb. When x = 0, you are set. When x = 1, map it to [...

12 years ago | 0

Answered
How can i use fmincon for multiple variables?
Take a look at the <http://www.mathworks.com/help/optim/ug/writing-objective-functions.html#brhkghv-4 documentation for writing ...

12 years ago | 0

Answered
How do I specify equality, inequality and bounds in a multiobjective optimization and how could I improve this optimization?
If you use fgoalattain instead of gamultiobj then you can use all constraint types. The goal attainment formulation is, perhaps,...

12 years ago | 0

| accepted

Answered
I am solving a joint non-linear optimization problem using 'fmincon' toolbox with three input argument variables of which two of then have to be integers as per our system design. But the solver consider continious real values. Can this be solved?
No, <http://www.mathworks.com/help/optim/ug/choosing-a-solver.html#brhkghv-19 fmincon does not address discrete decision variabl...

12 years ago | 2

| accepted

Load more