Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbywater committed Apr 11, 2017
1 parent 0c385a0 commit cb6c300
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@ snippets in this section have been tested. Please feel free to experiment by mak
If you are using a Python virtualenv, please check that your virtualenv is activated before installing the library
and running your program.

Let's jump in at the deep-end with a simple model of a power plant.
Let's jump in at the deep-end with a simple model of a gas-fired power station.

```python
quantdsl_module = """
PowerStation(Date('2012-01-01'), Date('2012-01-13'), Market('GAS'), Market('POWER'), Running())
def PowerStation(start_date, end_date, gas, power, time_since_off):
Expand Down Expand Up @@ -143,17 +142,23 @@ calibration_params = {
'GAS-POWER-CORRELATION': 0.4,
}

market_calibration = app.register_market_calibration(price_process_name, calibration_params)
market_calibration = app.register_market_calibration(
price_process_name,
calibration_params
)
```

Make a simulation from the calibration.

```python
import datetime

market_simulation = app.simulate(dependency_graph, market_calibration,
path_count=20000,
observation_date=datetime.datetime(2011, 1, 1))
market_simulation = app.simulate(
dependency_graph,
market_calibration,
path_count=20000,
observation_date=datetime.datetime(2011, 1, 1)
)
```

Make an evaluation using the simulation.
Expand Down

0 comments on commit cb6c300

Please sign in to comment.