sample

Generate a scenarios file, containing scenarios from the model.

Synopsis

provengo sample [--overwrite] [--size 100] <path-to-project>

Description

Generates a random sample of scenarios from the model. These scenarios can be used later for creating a test ensemble, or for generating a test book.

Parameters

--algorithm/-a

Sample algorithm. Options are random and full. Defaults to random.

--overwrite

Deletes previous sampled runs (if any). If omitted, the newly samples scenarios are added to the existing samples file.

--size NUM

Generate up to NUM unique scenarios. When using --overwrite, this will be the maximal size of the new sample. When not using --overwrite, this will be the maximal number of scenarios added to the existing samples file. When using the full sampling algorithm, this parameter is ignored.

-o/--output-file SAMPLE_FILE

Name of the generated samples file. Defaults to samples.json.

--not-growing-threshold NUM

Stop sampling after having NUM consecutive samples that did not discover a new scenario. Defaults to 100.

-l/--max-length MAX-LENGTH

Maximum length for each sample.