Answered
Speed differences in sym and vpa
I recommend using matlabFunction for optimizing symbolic variables and functions. There is <http://www.mathworks.com/help/optim/...

12 years ago | 0

Answered
Using Symbolic function to execute Optimization in MATLAB
There are examples in the documentation showing how to optimize using matlabFunction. <http://www.mathworks.com/help/optim/ug/sy...

12 years ago | 0

Answered
How should I make A and b matrix in fmincon function?
Perhaps the documentation can answer your questions. <http://www.mathworks.com/help/optim/ug/writing-objective-functions.html#br...

12 years ago | 0

Answered
Finding the zeros of a function
Or maybe some combination of <http://www.mathworks.com/help/matlab/ref/ezplot.html ezplot> and <http://www.mathworks.com/help/ma...

12 years ago | 0

Answered
Help with syntax of calling genetic algorithm (ga) function
I do not understand what is going on. But I suggest that you try patternsearch instead of ga. patternsearch is usually faster, m...

12 years ago | 0

Answered
lsqcurvefit - problem with number of iterations
You are trying to optimize a simulation. This has its own peculiar difficulties, <http://www.mathworks.com/help/optim/ug/optimiz...

12 years ago | 1

| accepted

Answered
How to set up non-linear relative constraints in Geneti Algorithm optimization
To get these linear constraints into the solver, use linear inequality constraint matrices. The constraints are: x(1) <= x(2...

12 years ago | 0

Answered
How to use code constraint file for fmincon function
It is possible that you calculate the value Urg in one function and then try to use it in another. <http://www.mathworks.com/hel...

12 years ago | 0

Answered
How to set first-order optimality value for lsqcurvefit?
I don't know what is going on here. But <http://www.mathworks.com/help/optim/ug/tolerances-and-stopping-criteria.html your toler...

12 years ago | 0

Answered
How to solve a nonlinear least square problem with constraints
You wrote function [c] = mycon(x) c = [x(3)^2-2*x(2)*x(1)]; ceq=[]; But you called the nonlinear constraint function ...

12 years ago | 0

Answered
Issue with Cholesky decomposition and positive definiteness
You say you are optimizing. Are you calling fmincon? It is possible that your optimization is stepping out of bounds, taking L t...

12 years ago | 1

Answered
Ways to force bintprog
If I understand you correctly, you want to force bintprog to take a branch-and-bound step that you specify. If this is your d...

12 years ago | 0

| accepted

Answered
How to solve a nonlinear least square problem with constraints
I am not sure what that constraint means in terms of your decision variables (the variables you adjust to achieve an optimum). I...

12 years ago | 0

Answered
ga integer and nonlinear constraints - penalty value meaning
<http://www.mathworks.com/help/gads/mixed-integer-optimization.html#bs1cihn As you can infer from the defintion here>, the penal...

12 years ago | 3

| accepted

Answered
What is wrong with my objective function, called by bintprog?
Please take a look at <http://www.mathworks.com/help/optim/ug/bintprog.html the documentation> and some <http://www.mathworks.co...

12 years ago | 0

Answered
Large-Scale Linear Programming
As stated on the linprog function reference page: x = linprog(f,A,b,Aeq,beq,lb,ub,x0) sets the starting point to x0. linprog...

12 years ago | 0

| accepted

Answered
Using fmincon for a very costly objective function
Danny, while I do not understand everything you are doing, here are my thoughts based on what you said in this forum. 1. The ...

12 years ago | 0

| accepted

Answered
Using of the iterator index in lsqnonlin
The short answer is that you should not do this. Your objective function should not depend on the iteration number. What is i...

12 years ago | 0

| accepted

Answered
Solve three equations with three unknowns
You seem to be trying to get an analytic solution to your equations. It is possible that no analytic solution exists. Instead...

12 years ago | 0

Answered
hypergeometric2f1 function representation and calculation
<http://www.mathworks.com/matlabcentral/fileexchange/1844-gaussian-hypergeometric-function/content/hypergeometric2f1.m This file...

12 years ago | 0

| accepted

Answered
why I can't run LinearModel.fit on my Matlab R2011b
LinearModel.fit was introduced in <http://www.mathworks.com/help/stats/release-notes.html R2012a of Statistics Toolbox>. Alan...

12 years ago | 0

| accepted

Answered
Running script for different datafiles consecutively
One more bit of advice: don't use optimset in the loop. Initialize your options before running the loop, calling optimset just o...

12 years ago | 1

Answered
How to get values for each iteration on optimization toolbox
The objective function value is available simply by <http://www.mathworks.com/help/optim/ug/iterative-display.html turning on it...

12 years ago | 0

Answered
defining simple optimization constraint: When x1 > 0 then x2 has to equal 0
You can represent this as a simple nonlinear constraint sum(x1.*x2) = 0 However, the resulting problem will very likely b...

12 years ago | 0

Answered
fminimax does not iterate
fminimax is a gradient-based solver, meaning the first thing it does is take f(x+delta) and compare it to f(x), where delta is a...

12 years ago | 1

| accepted

Answered
ga finds infeasible solutions for a nonlinear inequality constrained problem
You are free to pass ga any initial population that you like. ga cannot guarantee that an initial population is feasible with re...

12 years ago | 1

Answered
Optimization Where Both Objective and Non-Linear Constraint are Functions of a Function
<http://www.mathworks.com/help/optim/ug/writing-constraints.html#btfdwb7 Objective and Nonlinear Constraints in the Same Functio...

12 years ago | 1

| accepted

Answered
Problem with Genetic Algorithm using the global optimization toolbox
The inclusion of a nonlinear constraint function causes ga to perform a very different algorithm. See <http://www.mathworks.com/...

12 years ago | 0

Answered
curvefitting comparison in Kaleidagraph and Matlab
I doubt that you can get two different implementations, the lsqcurvefit one and the Kaleidagraph one, to take the same iteration...

12 years ago | 1

Answered
optimization problem using fminunc
Perhaps examining <http://www.mathworks.com/help/optim/examples/nonlinear-data-fitting.html a similar example> would be useful. ...

12 years ago | 0

Load more