reset_solver
Clear all variables, constraints, and model data from the solver to start a new problem fresh.
Instructions
Reset the solver state.
Clears all variables, constants, constraints, and model data. Useful when starting a new problem.
Returns: A dictionary with status and a success message.
Example: >>> create_int_var("x") 'int:x' >>> add_constraint("int:x > 5") {'status': 'success', 'constraint': 'int:x > 5'} >>> reset_solver() {'status': 'success', 'message': 'Solver reset successfully'} >>> list_variables() {'variables': []}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||