Re: Matlab optimization question



"anja.ende@xxxxxxxxxxxxxx" <anja.ende@xxxxxxxxxxxxxx> wrote in
message <9841aed9-8df4-471b-b159-
8fd97a33e5d6@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
Hi everyone,

I need some help regarding optimization and data-fitting. It has to do
with finding some coefficients that minimizes a function but I am
unable to find a good way to start.

I have a data file that contains some time points and a variable that
evolves with time.

I have a function as follows:

c = 0.07 * (exp(t - x1) / 3.4 - x2)

c is known for a set of time (t) points and the task is to find x1 and
x2 with the constraint that t > x1.

Can I formulate this as an optimization problem and use something like
fmincon to solve this?

All the examples that I see, do not show how to pipe the input data (c
and t arrays in my case)?

Also, how can I specify the constraint which involves one of the
unknown variables (x1)?

I hope I have expressed the problem clearly enough...
Thanks,
Anja

Use lsqcurvefit or lsqnonlin. The constraint is
a simple bound constraint. Or you could use a
function like easyfit from the file exchange.

John
.



Relevant Pages

  • Re: how to solve this kind of optimization problem
    ... Also the exact meaning of this is that we expect the number of changes ... this would mean a terrible combinatorical optimization problem ... >First I have an optimization problem as follows. ... >However suppose that there is a new constraint on x now. ...
    (sci.math.num-analysis)
  • Re: how to solve this kind of optimization problem
    ... First I have an optimization problem as follows. ... However suppose that there is a new constraint on x now. ... an trust region optimizer would allow this by setting the maximum ...
    (sci.math.num-analysis)
  • Re: upper and lower bounds as constraints?
    ... the optimization is also over the weights mentioned in the beginning ... The objective function is a sum of quantum probabilities given as ... THere is 1 equality constraint of similar ... any advice would be appreciated. ...
    (comp.soft-sys.matlab)
  • Re: Scaling in fmincon()
    ... > I have been using the Matlab constrained optimization fucntion(). ... does anyone know if Matlab fmincon() does any scaling at all? ... I'll form two objectives, ... Iter F-count fconstraint Step-size derivative ...
    (comp.soft-sys.matlab)
  • Re: Need help with fmincon and fminunc
    ... fmincon,and when I run the optimization program,this ... The default in fmincon is to use the largescale ... 1.I don't have any constraint function.However,I have the ... Fminunc has no ability to use constraints. ...
    (comp.soft-sys.matlab)