Ticket #158 (new enhancement)
allow dynamic updates of constraints
Reported by: | mmckerns | Owned by: | mmckerns |
---|---|---|---|
Priority: | major | Milestone: | mystic-0.3a |
Component: | mystic.constraints | Keywords: | |
Cc: |
Description
allow dynamic updates of constraints (do this by saving constraints function to solver state, then reading from state)
i.e. -- solver._constraints = new_constraints_function
Change History
Note: See
TracTickets for help on using
tickets.
constraints function is now saved as solver._constraints; there is a SetConstraints method (in r473).
Does this work dynamically? That will need to be tested. However, it should work upon solver stop and restart. I'll push testing this one off a little bit... dynamic updates probably need some additional infrastructure.