算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
constraints【设计与创意】Route SDV constraint design, serialization, loading, and debugging workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about adding or debugging SDV logical constraints: built-in CAG constraints, legacy tabular constraints, custom constraint factories, programmable constraints, constraints JSON files, or synthesizer constraint methods.
FixedCombinations, Inequality, or "constraint validation error".sdv.cag constraints and legacy sdv.constraints tabular constraints.add_constraints, get_constraints, set_constraints, and load_constraints.table_name on every one-table CAG constraint.sdv.cag objects for synthesizer.add_constraints([...]); use legacy sdv.constraints only for old tabular/data-processor workflows or when translating existing legacy constraint definitions.fit when possible. If constraints are added after fitting, refit the synthesizer before relying on them.create_custom_constraint_class only when the legacy tabular interface is required; otherwise prefer a ProgrammableConstraint subclass.sdv.utils.load_constraints, then compare the number of loaded constraints with the file entries because unknown classes are warned and skipped.table_name, row index, or is_valid return type, jump directly to troubleshooting.