Answered
fmincon error, please help me!
If I understand you, then this is a syntax error. fmincon expects that the objective function is a function of one variable. Thi...

12 years ago | 0

Answered
Role of initial starting point in convergence of pattern search with non-linear constraints
The nonlinear constraint algorithm is described <http://www.mathworks.com/help/gads/description-of-the-nonlinear-constraint-solv...

12 years ago | 0

Answered
Large scale nonlinear system of equations with sparse Jacobian: cannot find the solution
The answer is "maybe." This is not a huge relative discrepancy. Maybe you should try central finite differences first to see if ...

12 years ago | 0

| accepted

Answered
rectify error in genetic algorithm
I don't know what you are really trying to do, but whatever it is, you need to understand the syntax of linear constraints if yo...

12 years ago | 1

| accepted

Answered
How to train an SVM classifier
fitcsvm was introduced in R2014a. Perhaps your MATLAB version is older than that? If you have Statistics Toolbox version R201...

12 years ago | 1

| accepted

Answered
regression tree/classification tree, tree depth, dont understand synatx
doc logspace y = logspace(a,b,n) generates n points between decades 10^a and 10^b. doc rng rng('default') puts the se...

12 years ago | 0

| accepted

Answered
Can I use Anonymous Function to pass additional parameters to the objective function in Genetic Algorithm of Global Optimization Toolbox??
Yes, this method of passing additional parameters works just fine. It is a valid MATLAB syntax, so it does not matter which tool...

12 years ago | 0

| accepted

Answered
GlobalSearch and MultiStart Syntax
Can you run fmincon alone without a syntax error? If not, get that debugged first. If so, then please show us exactly what MATLA...

12 years ago | 0

Answered
What are the various native fitness functions that can be called in GA Optimization Toolbox?
You can use any objective function from Optimization Toolbox or Global Optimization Toolbox. In particular, * expensive_objfu...

12 years ago | 0

| accepted

Answered
How can i store the final point obtained from Optimtool into a variable?
*File > Export to workspace* Select *Export results to a MATLAB structure named* Alternatively, you can select and copy th...

12 years ago | 3

| accepted

Answered
vectorize the genetic algorithm optimization
I answered in <http://www.mathworks.com/matlabcentral/newsreader/view_thread/336584 this thread>. Alan Weiss MATLAB mathem...

12 years ago | 0

Answered
performance differences in linprog optimization depending on how boundaries are incorporated
Linear programming algorithms have a much easier time satisfying bounds than they do satisfying linear inequalities, so I am not...

12 years ago | 1

| accepted

Answered
How to track optimization process?
Probably the best way is to <http://www.mathworks.com/help/gads/genetic-algorithm-options.html#f14474 include a plot function> i...

12 years ago | 1

Answered
how to select two objective function while doing multi disciplinary design optimization in matlab toolbox
It is not at all clear what you are doing wrong. Did you try to follow the syntax of a <http://www.mathworks.com/help/gads/using...

12 years ago | 1

| accepted

Answered
fmincon: Proceeds when some variables are fixed???
You have not set your options to take advantage of your analytic gradient and Hessian. Set the GradObj option to 'on', the Hessi...

12 years ago | 0

Answered
mle with custom PDF stuck after some number of iterations; no error or warning
<http://www.mathworks.com/help/optim/ug/common-options.html First thing I would try> is to set the FunValCheck option to 'on'. T...

12 years ago | 1

| accepted

Answered
Can anyone please suggest me how I can solve this non-linear optimation? Thanks.
This is a binary integer programming problem. Checking the <http://www.mathworks.com/help/optim/ug/choosing-a-solver.html#brhkgh...

12 years ago | 0

Answered
I am trying to optimize the parameters of a 2 by 2 controller via fminsearch but I am getting the result same as the initial points that are inserted to initiate the optimization process.
Your objective function is the result of a simulation. You might need to take larger steps in your optimmization routine to avoi...

12 years ago | 0

| accepted

Answered
supply gradient to fmincon
You need to pass the options to fmincon: [x,fval]=fmincon('objfun',x0,[],[],[],[],[0 0 0 0 0],[100 100 100 100 100],[],optio...

12 years ago | 1

| accepted

Answered
fmincon in specific Range
It is not clear in what way the result does not satisfy you. If you think fmincon did not arrive at a local minimum, then perhap...

12 years ago | 1

| accepted

Answered
Finding a fitness function for GA
I don't know why you think GA is the way to go, but <http://www.mathworks.com/help/optim/examples/nonlinear-data-fitting.html he...

12 years ago | 0

Answered
Changing tolCon in fmincon, solves for tolCon 1e-1 but not for 1e-2
It sounds as if the "optimal solution" fmincon finds with a 1e-1 TolCon is not feasible to a small tolerance. Or maybe it is--yo...

12 years ago | 0

Answered
Genetic Algorithm fixed variable step in optimization toolbox
I am not at all sure that I understand you. What does "Optimization is being done with decimals" mean? What does "I needed to se...

12 years ago | 0

Answered
Changing the default tolerance for fmincon
Seting a tolerance of 1e-20 is the same as disabling that tolerance, or setting it to 0. See <http://www.mathworks.com/help/opti...

12 years ago | 1

Answered
Dual values for intlinprog solver
I just answered this as best as I could on <http://www.mathworks.com/matlabcentral/newsreader/view_thread/336193 the newsreader ...

12 years ago | 0

Answered
How to solve (code) the following optimization problem into matlab optimization toolbox?
Perhaps you could help yourself by looking at an <http://www.mathworks.com/help/optim/ug/example-nonlinear-constrained-minimizat...

12 years ago | 1

Answered
error in objective function of fmincon and solver stopped prematurely
I wonder if you have an error in this line: J = w*f1 + (w-1)*f2; %weightage Did you mean this instead? J = w*f1 + (1-...

12 years ago | 1

Answered
Traveling salesman intlinprog function in 2013b
You are asking for something that is nearly impossible, namely, writing a replacement mixed-integer linear programming algorithm...

12 years ago | 1

Answered
how to use two linear equality constraints
I don't know what kind of constraints you have, I mean, perhaps they are linear constraints, perhaps they are nonlinear constrai...

12 years ago | 0

Answered
fmincon and constraints inherant to the function
It depends on how you tried to include the nonlinear constraints. I believe the way to do so successfully is as follows: fun...

12 years ago | 1

Load more