Generates separate configuration charts for multiple solutions.

config_chart_multi_solutions(
  solutions,
  symbol_set = c("unicode", "ascii", "latex"),
  language = c("en", "ja"),
  condition_order = NULL,
  show_epi = FALSE
)

Arguments

solutions

List of character vectors. Each element is a vector of paths for one solution.

symbol_set

Character. One of "unicode", "ascii", or "latex".

language

Character. "en" for English, "ja" for Japanese.

condition_order

Character vector. Optional ordering of conditions.

show_epi

Logical. Whether to identify and display Essential Prime Implicants (EPIs) in the note. Default is FALSE.

Value

Character string containing Markdown-formatted tables.

Examples

# 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*