Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Get the list of constraints #22

Open
mourad1081 opened this issue Jan 3, 2020 · 1 comment
Open

Get the list of constraints #22

mourad1081 opened this issue Jan 3, 2020 · 1 comment

Comments

@mourad1081
Copy link

mourad1081 commented Jan 3, 2020

For debugging purposes, I am trying to get the list of all the constrains I have created. Is there a way to get them in a human readable format?

For instance, something like this:

[
    "variable A - variable B >= 10",
    "variable A + variable B <= 20",
    Etc.
]

Or do you have any hints on how I can implement that please apart from maintening a list each time a constraint is added?

@mreinstein
Copy link

@mourad1081 shameless plug for my own project, but I wrote a higher level constraint syntax on top of kiwi.js. I think this provides what you're talking about: https://github.com/mreinstein/constraint-solver

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants