回答済み

Solve non-linear equation with 2 unknowns and lb/ub constraints

to get the min instead of max you have to put a minus in the objective (and yes this is annoying) but if you just try to maxi...

Solve non-linear equation with 2 unknowns and lb/ub constraints

to get the min instead of max you have to put a minus in the objective (and yes this is annoying) but if you just try to maxi...

約7年 前 | 0

回答済み

Question about fsolve

first of all you should delete the /M in the objective, because this only scales your problem in a bad way. another problem cou...

Question about fsolve

first of all you should delete the /M in the objective, because this only scales your problem in a bad way. another problem cou...

約7年 前 | 0

回答済み

fminsearch with boundary conditions on parameters

in the file exchange there is an fminsearch with boundaries (fminsearchbnd) i assume you dont have the optimization toolbox, ...

fminsearch with boundary conditions on parameters

in the file exchange there is an fminsearch with boundaries (fminsearchbnd) i assume you dont have the optimization toolbox, ...

約7年 前 | 0

| 採用済み

回答済み

Non-negativity for unconstrained nonlinear multivariable function

if you want your inputs to be positive, just add them as a lower bound, see documention. For example if your x is a vector of th...

Non-negativity for unconstrained nonlinear multivariable function

if you want your inputs to be positive, just add them as a lower bound, see documention. For example if your x is a vector of th...

約7年 前 | 0

回答済み

a question on fsolve

the problem in the first case is that matlab assumes that every x will show up in every equation. In other words, it will try to...

a question on fsolve

the problem in the first case is that matlab assumes that every x will show up in every equation. In other words, it will try to...

約7年 前 | 0

回答済み

fmincon and constrains

if you want to minimize all the values in the vector, you can sum them and use that as your objective.... about the not equal...

fmincon and constrains

if you want to minimize all the values in the vector, you can sum them and use that as your objective.... about the not equal...

約7年 前 | 0

回答済み

fsolve with multidimensional array and x0

if you want to stick more to your orginal formulation: the problem is that your x0 has to be a vector, not an array, so you will...

fsolve with multidimensional array and x0

if you want to stick more to your orginal formulation: the problem is that your x0 has to be a vector, not an array, so you will...

約7年 前 | 1

| 採用済み

回答済み

syntax of fsolve

you should write it as a function (in either anonymous function, function file or subfunction if your main program is also a fun...

syntax of fsolve

you should write it as a function (in either anonymous function, function file or subfunction if your main program is also a fun...

約7年 前 | 0

回答済み

How do I set my fmincon constraint parameters?

you can insert them as nonlinear constraints (as functions, see the documentation).

How do I set my fmincon constraint parameters?

you can insert them as nonlinear constraints (as functions, see the documentation).

約7年 前 | 0

回答済み

Equation solving problem

im sure we can help you very well with this what do you have so far? or which part is difficult for you? anyway, we have ...

Equation solving problem

im sure we can help you very well with this what do you have so far? or which part is difficult for you? anyway, we have ...

約7年 前 | 0

| 採用済み

回答済み

need help with optimtool

although this does not matter much, you should add an 'end' how do you call obj.m with fmincon? and where did you store obj.m...

need help with optimtool

although this does not matter much, you should add an 'end' how do you call obj.m with fmincon? and where did you store obj.m...

約7年 前 | 0

| 採用済み

回答済み

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...

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...

約7年 前 | 0

回答済み

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...

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...

約7年 前 | 0

回答済み

"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 (...

"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 (...

約7年 前 | 0

回答済み

fmincon violates nonlinear inequality during search

No there is not. You will have to be innovative yourself to avoid this from happening...

fmincon violates nonlinear inequality during search

No there is not. You will have to be innovative yourself to avoid this from happening...

約7年 前 | 0

回答済み

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...

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...

約7年 前 | 0

回答済み

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...

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...

7年以上 前 | 0

質問

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} ...

7年以上 前 | 1 件の回答 | 0

回答済み

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...

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...

7年以上 前 | 0

回答済み

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...

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...

7年以上 前 | 0

回答済み

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...

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...

7年以上 前 | 0

| 採用済み

回答済み

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 ...

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 ...

7年以上 前 | 0

回答済み

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 ...

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 ...

7年以上 前 | 0

回答済み

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...

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...

7年以上 前 | 0

| 採用済み

回答済み

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...

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...

7年以上 前 | 0

回答済み

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...

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...

7年以上 前 | 0

回答済み

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...

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...

7年以上 前 | 0

| 採用済み

回答済み

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...

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...

7年以上 前 | 0

| 採用済み

回答済み

??? 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.....

??? 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.....

7年以上 前 | 0

| 採用済み