Exemple #1
0
def test_check_solution(model_or_seed):
    params, options = process_model_or_seed(model_or_seed)

    state_space = rp.solve(params, options)

    optim_paras, options = process_params_and_options(params, options)

    check_model_solution(optim_paras, options, state_space)
def test_check_solution(model_or_seed):
    """Test solution of a random model."""
    params, options = process_model_or_seed(model_or_seed)

    solve = get_solve_func(params, options)
    state_space = solve(params)

    optim_paras, options = process_params_and_options(params, options)

    check_model_solution(optim_paras, options, state_space)
Exemple #3
0
 def _check_model_solution(self):
     """Check the integrity of the results."""
     check_model_solution(self.attr)