Skip to content

Commit

Permalink
Prepare for estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
JBjoernskov committed Jan 11, 2024
1 parent 47c642d commit 815d858
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions twin4build/estimator/tests/test_estimator_wbypass.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ def test_estimator():
model.component_dict["coil inlet water temperature sensor"]: {"standardDeviation": 0.5/percentile}}

# Options for the PTEMCEE estimation algorithm. If the options argument is not supplied or None is supplied, default options are applied.
options = {"n_sample": 10000, #This is a test file, and we therefore only sample 2. Typically, we need at least 1000 samples before the chain converges.
"n_temperature": 1, #Number of parallel chains/temperatures.
"fac_walker": 2, #Scaling factor for the number of ensemble walkers per chain. Minimum is 2.
options = {"n_sample": 1000000, #This is a test file, and we therefore only sample 2. Typically, we need at least 1000 samples before the chain converges.
"n_temperature": 2, #Number of parallel chains/temperatures.
"fac_walker": 10, #Scaling factor for the number of ensemble walkers per chain. Minimum is 2.
"prior": "uniform", #Prior distribution - "gaussian" is also implemented
"walker_initialization": "uniform",#Initialization of parameters - "gaussian" is also implemented
"n_cores": 1,
# "n_cores": 1,
"T_max": 1e+4,
"assume_uncorrelated_noise": True,
"use_simulated_annealing": True
"use_simulated_annealing": False
}

estimator.estimate(x0=x0,
Expand Down

0 comments on commit 815d858

Please sign in to comment.