Strategy python

(Difference between revisions)
 Revision as of 08:13, 12 March 2008 (view source)Kazem (Talk | contribs) (→Initialize)← Older edit Revision as of 08:15, 12 March 2008 (view source)Kazem (Talk | contribs) Newer edit → Line 6: Line 6: *''InitializeElements'' calls Initialize function of the elements *''InitializeElements'' calls Initialize function of the elements − ==Solve== + ==[[Solve]]== This function is called at every time step to solve the problem. the order of calls is as follow This function is called at every time step to solve the problem. the order of calls is as follow *First of all it checks if [[Initialize]] is called or no so just in the first call of '''Solve''', scheme and elements are initialized and then corresponding flag turns out to True *First of all it checks if [[Initialize]] is called or no so just in the first call of '''Solve''', scheme and elements are initialized and then corresponding flag turns out to True *initializations needed for every ''step'' is done by [[InitializeSolutionStep]] *initializations needed for every ''step'' is done by [[InitializeSolutionStep]] + + + + == [[InitializeSolutionStep]] ==

Revision as of 08:15, 12 March 2008

functions in strategy_python are descibed here

Initialize

calls Initialize and InitializeElements of the Scheme

• Initilize is intended to be called just once when the strategy is initialized
• InitializeElements calls Initialize function of the elements

Solve

This function is called at every time step to solve the problem. the order of calls is as follow

• First of all it checks if Initialize is called or no so just in the first call of Solve, scheme and elements are initialized and then corresponding flag turns out to True
• initializations needed for every step is done by InitializeSolutionStep