## Optimizing Integer Increment

Using the Multiple Run Fitter, praxis, etc..
noorubm
Posts: 6
Joined: Thu Feb 04, 2010 6:39 pm

### Optimizing Integer Increment

Hello,

I have a question about the optimizer tool in Multiple Run Fitter. I would like to vary one of the parameters as an integer. Please let me know if there is an way to do that.

Thank you in advance.

Yamin
ted
Site Admin
Posts: 5919
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

### Re: Optimizing Integer Increment

That's not going to work with Praxis. In general terms, optimization means finding the particular combination of values for parameters a_0, a_1, . . . a_n-1 that minimizes the objective function f(a_0, a_1, . . . a_n-1). Praxis requires that each a is continuous over some interval. If you know that one of the parameters, say parameter a_n-1, can only have integer values, and you can furthermore stipulate that this parameter can have only one of m different values, then you could recast the problem like so:
Given a set of integer values i_0, i_1, . . . i_m-1, define functions g_k(), where k = 0, 1, . . . m-1, such that
g_k(a_0, a_1, . . . a_n-2) = f(a_0, a_1, . . . a_n-2, i_k)
Then you have m different subproblems: for each k, find the combination of values for a_0 . . . a_n-2 that minimizes g_k. The final step is to find which g_k has the smallest minimum.

Otherwise you could give up on Praxis and add another optimizer of your own choice.
noorubm
Posts: 6
Joined: Thu Feb 04, 2010 6:39 pm

### Re: Optimizing Integer Increment

thank you so much. I wrote a loop and it works fine.