Risposto
need help with optimtool
apparently you somewhere call a function "obj.m" with an 'double' input and this is not allowed we can't help much more if yo...

oltre 13 anni fa | 0

Risposto
Using "fmincon" function and show "busy" all the time!
fmincon does terminate at some point unless it gets stuck inside an iteration. what i am saying is that there is some logical ex...

oltre 13 anni fa | 0

Risposto
"Vectorized" fsolve
first of all, if you loop through R and use the solution of the last loop as starting value, that will already help quite abit (...

oltre 13 anni fa | 0

Risposto
fmincon violates nonlinear inequality during search
No there is not. You will have to be innovative yourself to avoid this from happening...

oltre 13 anni fa | 0

Risposto
Robustness with fminimax
they way you present the problem now, you could just replace x(1:n) with y(1:n)=x(1:n) + r(1:n) in the orginal problem.... i...

oltre 13 anni fa | 0

Risposto
fmincon function ( constrained nonlinear multi-variable optimization)
about the input variables: dont use them as global variables (as a rule,only in special cases use global variables). i dont know...

quasi 14 anni fa | 0

Domanda


Select all entries in first N-1 dimensions of array
hi, i have a loop in which cell array V keeps expanding: for it=1:10; V{it}= ..... % the number of dimension of V{it} ...

quasi 14 anni fa | 1 risposta | 0

1

risposta

Risposto
fsolve and indexing
i think you want to use cell arrays to store the vectors of the solutions: C{i,j}=fsolve(....) to call the content: C{i,j...

quasi 14 anni fa | 0

Risposto
Using fminunc()
what do you mean, you can't write it down? you can create a function file if the function is hard to capture in one line: fo...

quasi 14 anni fa | 0

Risposto
Using fminunc()
what do you want? what is the function you want to optimize for? fminunc searches for a minimum, but for instance x1+x2 is unbou...

quasi 14 anni fa | 0

| accettato

Risposto
Constrained nonlinear regression
lsqnonlin

quasi 14 anni fa | 0

Risposto
Sorry but cannot fsolve this and don't know why
fsolve can only find local solutions. like the exit message says: it finds a local minimum but it is not 0. So you should try a ...

quasi 14 anni fa | 0

Risposto
what changes i need to make for better answer (fmincon)
-22 is better than 0, so the solution fmincon found is better than what you want... why would you want 0 if the optimum (lowest ...

quasi 14 anni fa | 0

Risposto
how to solve equations?
you can use fsolve to solve equation, but note that it will only find 1 local solution. it seems that in in your case there is a...

quasi 14 anni fa | 0

| accettato

Risposto
Reduce the numbers of inputs in a numerical function
use passing of parameters: function value=my_fun(x,y,z); end then you make an anonymous function: x0=... y0=... my_fun_z...

quasi 14 anni fa | 0

Risposto
fmincon trying to evaluate a vector full of NaN
maybe you can post important bits of your codes? (or the whole code?) if you use finite differences, one possible cause is th...

quasi 14 anni fa | 0

Risposto
How do i solve minimax optimization problem?
to solve a minimax program you will have to rely on 'fminsearch', file exchange or write you own optimization routine (this migh...

quasi 14 anni fa | 0

| accettato

Risposto
non linear data fit (weighted least square)
check: -lsqcurvefit -lsqnonlin (both are in optimization toolbox though) im not sure how you want to take account of t...

quasi 14 anni fa | 0

| accettato

Risposto
??? Index exceeds matrix dimensions.
the error says that matlab tries to evaluate an element in an array, but the array is smaller than the index it tries to acces.....

quasi 14 anni fa | 0

| accettato

Risposto
HOW CA I WRITE A OLS CODE FOR THIS FUNCTION?
there are many tools. have a look at them (for some you need specific toolboxes): \ (left divide) regress curvefit lsq...

quasi 14 anni fa | 0

Risposto
Algebraic Problem in writing the function for LSQNONLIN tool in the Optimization Toolbox
the message simply tells you that if youo want to add two matrices they have to be of the same size, and apparently that is not ...

quasi 14 anni fa | 0

Risposto
finding the minimum value
i have difficulty understanding your code... but lets say you have: w(:,:,1:5) you can add another loop (iw=1:5;), store th...

quasi 14 anni fa | 0

Risposto
Fitting in MatLAB
the problem is that fminsearch is not well suited to optimize for more than a couple of parameters, BUT there are special tools ...

quasi 14 anni fa | 0

Risposto
fitting data with specific function
i think 'lsqnonlin' is best suited... if you dont want to minimize least squares, you can write your own objective function ...

quasi 14 anni fa | 0

Risposto
Probelem with optimization and finding parameters?
how to solve this depends a little bit on what your really want and what your functions look like, because in your example the s...

quasi 14 anni fa | 0

Risposto
the question about solving nonlinear equations
hmmm. strange. only thing i can think of is that the gradient is extremely large (infinity?) at this particular point... did ...

quasi 14 anni fa | 0

Risposto
how to save calculating result ( form two variable) in 2-D matrix ?
the problem is that the length of Ei will differ for the values of Eg. To solve this with for loop i preallocate 'aa' with NaN ...

quasi 14 anni fa | 0

| accettato

Risposto
Is there any function other than Fsolve to solve systems of nonlinear equations ????
the problem certainly has not converged as y is still jumping up and down, so there is some problem... for a start, you shou...

quasi 14 anni fa | 0

Risposto
finding turning points of a dataset
take the difference between each two points in the vector (use 'diff') evaluate if these numbers 'grow faster'. Im not sure w...

quasi 14 anni fa | 0

Risposto
why is the fminsearch output depending upon the initial guess?
try increasing the accuracy (set TolFun, TolX at smaller values, ie. 1e-12) scaling the problem might also help (such that th...

quasi 14 anni fa | 0

Carica altro