Skip to content

How to use the solvers for constraint satisfaction problems? #2430

Answered by phschiele
zhouyou-gu asked this question in Q&A
Discussion options

You must be logged in to vote

You construct and solve the feasibility problem like

problem = cp.Problem(cp.Minimize(0), constraints)
problem.solve()

Then you check problem.status to see if it is "optimal" or "infeasible" (or something else).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zhouyou-gu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants