Ticket #158 (new enhancement)

Opened 5 years ago

Last modified 5 years ago

allow dynamic updates of constraints

Reported by: mmckerns Owned by: mmckerns
Priority: major Milestone: mystic-0.3a
Component: mystic.constraints Keywords:


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

comment:1 Changed 5 years ago by mmckerns

  • Milestone changed from mystic-0.2a2 to mystic-0.2a3

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.

Note: See TracTickets for help on using tickets.