Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add iterator to brute force initial conditions #169

Open
quantifish opened this issue May 9, 2016 · 6 comments
Open

Add iterator to brute force initial conditions #169

quantifish opened this issue May 9, 2016 · 6 comments
Assignees

Comments

@quantifish
Copy link
Contributor

Rather than user specifying the number of iterations could just iterate until the init nums stabilize within some tolerance (using a do/while loop or whatever)

@smartell
Copy link
Contributor

smartell commented May 9, 2016

You don't want to do this if it involves dvariables. Reason is that the derivative information will be corrupt if you have a variable number of iterations. Unless you write the associated adjoint code, you'll have to use a fixed number of iterations to preserved the correct derivative information.

@quantifish
Copy link
Contributor Author

quantifish commented May 9, 2016 via email

@smartell
Copy link
Contributor

smartell commented May 9, 2016

Or solve the system of linear equations.

On May 9, 2016, at 9:53 AM, Darcy Webber [email protected] wrote:

Ah huh makes sense, thanks Steve.

Perhaps I could add a little snippet of code at the end that ensures
that the number of iterations used has resulted in equilibrium numbers
at length and throws an error code if not.

You are receiving this because you commented.
Reply to this email directly or view it on GitHub #169 (comment)

@quantifish
Copy link
Contributor Author

Or that. Could be tricky with different things happening in different
seasons etc.

On 16-05-09 08:54 AM, Steve Martell wrote:

Or solve the system of linear equations.

On May 9, 2016, at 9:53 AM, Darcy Webber [email protected]
wrote:

Ah huh makes sense, thanks Steve.

Perhaps I could add a little snippet of code at the end that ensures
that the number of iterations used has resulted in equilibrium numbers
at length and throws an error code if not.

You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#169 (comment)


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#169 (comment)


D'Arcy Webber, PhD
Quantifish | Quantitative Marine Science Solutions
P: +6421 0233 0163
E: [email protected]

W: www.quantifish.co.nz

@smartell
Copy link
Contributor

smartell commented May 9, 2016

I see your point now. I guess if you want to avoid writing a bunch of basis functions, then a numerical solution is the only alternative. Hmm, you could throw an error code I suppose, but you don’t want it to crash per say. I’d just keep track of the delta’s in each iteration, then print out the value of the delta to the report file, or the screen if it is !=0.

On May 9, 2016, at 9:53 AM, Darcy Webber [email protected] wrote:

Ah huh makes sense, thanks Steve.

Perhaps I could add a little snippet of code at the end that ensures
that the number of iterations used has resulted in equilibrium numbers
at length and throws an error code if not.

You are receiving this because you commented.
Reply to this email directly or view it on GitHub #169 (comment)

@quantifish
Copy link
Contributor Author

Yah good call, I'll go with that. Cheers mate

On 16-05-09 09:00 AM, Steve Martell wrote:

I see your point now. I guess if you want to avoid writing a bunch of
basis functions, then a numerical solution is the only alternative.
Hmm, you could throw an error code I suppose, but you don’t want it to
crash per say. I’d just keep track of the delta’s in each iteration,
then print out the value of the delta to the report file, or the
screen if it is !=0.

On May 9, 2016, at 9:53 AM, Darcy Webber [email protected]
wrote:

Ah huh makes sense, thanks Steve.

Perhaps I could add a little snippet of code at the end that ensures
that the number of iterations used has resulted in equilibrium numbers
at length and throws an error code if not.

You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#169 (comment)


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#169 (comment)


D'Arcy Webber, PhD
Quantifish | Quantitative Marine Science Solutions
P: +6421 0233 0163
E: [email protected]

W: www.quantifish.co.nz

@quantifish quantifish self-assigned this Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants