|
167 | 167 | # set seed for simulation |
168 | 168 | Random.seed!(83472834) |
169 | 169 | # simulate data |
170 | | - model_ml_new = replace_observed( |
171 | | - model_ml, |
172 | | - rand(model_ml, params, 1_000_000), |
173 | | - ) |
174 | | - model_ml_sym_new = replace_observed( |
175 | | - model_ml_sym, |
176 | | - rand(model_ml_sym, params, 1_000_000), |
177 | | - ) |
| 170 | + model_ml_new = replace_observed(model_ml, rand(model_ml, params, 1_000_000)) |
| 171 | + model_ml_sym_new = replace_observed(model_ml_sym, rand(model_ml_sym, params, 1_000_000)) |
178 | 172 | # fit models |
179 | 173 | sol_ml = solution(fit(semoptimizer, model_ml_new)) |
180 | 174 | sol_ml_sym = solution(fit(semoptimizer, model_ml_sym_new)) |
|
376 | 370 | # set seed for simulation |
377 | 371 | Random.seed!(83472834) |
378 | 372 | # simulate data |
379 | | - model_ml_new = replace_observed( |
380 | | - model_ml, |
381 | | - rand(model_ml, params, 1_000_000), |
382 | | - ) |
383 | | - model_ml_sym_new = replace_observed( |
384 | | - model_ml_sym, |
385 | | - rand(model_ml_sym, params, 1_000_000), |
386 | | - ) |
| 373 | + model_ml_new = replace_observed(model_ml, rand(model_ml, params, 1_000_000)) |
| 374 | + model_ml_sym_new = replace_observed(model_ml_sym, rand(model_ml_sym, params, 1_000_000)) |
387 | 375 | # fit models |
388 | 376 | sol_ml = solution(fit(semoptimizer, model_ml_new)) |
389 | 377 | sol_ml_sym = solution(fit(semoptimizer, model_ml_sym_new)) |
|
0 commit comments