Internal helper to obtain the solution expression, consistency
(inclS) and coverage (covS) from an object returned by
QCA::minimize().
qca_extract(sol, extract_mode = c("first", "all", "essential"))A list with elements depending on extract_mode.
For "first": expression, inclS, covS.
For "all": adds n_solutions.
For "essential": adds selective_terms, unique_terms,
n_solutions.
If extraction fails, returns "No solution" and NA_real_
for numeric values.
A solution object returned by QCA::minimize().
Character. How to handle multiple intermediate solutions:
"first" - return only the first solution (M1). Default.
"all" - return all solutions concatenated.
"essential" - return essential prime implicants (terms
common to all solutions), plus selective prime implicants and
solution count.