R/tsqca_config_chart.R
config_chart_multi_solutions.RdGenerates separate configuration charts for multiple solutions.
List of character vectors. Each element is a vector of paths for one solution.
Character. One of "unicode", "ascii",
or "latex".
Character. "en" for English, "ja" for Japanese.
Character vector. Optional ordering of conditions.
Logical. Whether to identify and display Essential Prime Implicants (EPIs) in the note. Default is FALSE.
Character string containing Markdown-formatted tables.
# Multiple solutions
solutions <- list(
c("A*B", "C"),
c("A*B", "D"),
c("A*C")
)
chart <- config_chart_multi_solutions(solutions)
cat(chart)
#> **Note:** 3 equivalent solutions exist. Tables are shown separately below.
#>
#> ### Solution M1
#>
#> | Condition | T1 | T2 |
#> |:--:|:--:|:--:|
#> | A | ● | |
#> | B | ● | |
#> | C | | ● |
#>
#> ---
#>
#> ### Solution M2
#>
#> | Condition | T1 | T2 |
#> |:--:|:--:|:--:|
#> | A | ● | |
#> | B | ● | |
#> | D | | ● |
#>
#> ---
#>
#> ### Solution M3
#>
#> | Condition | T1 |
#> |:--:|:--:|
#> | A | ● |
#> | C | ● |
#>
#> *● = presence, ⊗ = absence, blank = don't care*
# With EPI identification
chart <- config_chart_multi_solutions(solutions, show_epi = TRUE)
cat(chart)
#> **Note:** 3 equivalent solutions exist. Tables are shown separately below.
#>
#> *Solutions differ in all prime implicants (no essential prime implicants).*
#>
#> ### Solution M1
#>
#> | Condition | T1 | T2 |
#> |:--:|:--:|:--:|
#> | A | ● | |
#> | B | ● | |
#> | C | | ● |
#>
#> ---
#>
#> ### Solution M2
#>
#> | Condition | T1 | T2 |
#> |:--:|:--:|:--:|
#> | A | ● | |
#> | B | ● | |
#> | D | | ● |
#>
#> ---
#>
#> ### Solution M3
#>
#> | Condition | T1 |
#> |:--:|:--:|
#> | A | ● |
#> | C | ● |
#>
#> *● = presence, ⊗ = absence, blank = don't care*