How to restrict the output to integers for CVXOPT, Quadratic Cone Programs

34 views
Skip to first unread message

Davidlx

unread,
Mar 29, 2017, 1:26:51 PM3/29/17
to CVXOPT
Hi Guys,

I have been stucked on this question for a long time, and do not know how to solve it. Going through the user guide over and over, still can not find the answer.

I would like to supply a range to the solver, let's say 0 - 21, and expecting an integer output, instead of a floating output, like 0.001

Does anyone know how to solve this?

Thanks!

Joachim Dahl

unread,
Mar 29, 2017, 1:57:20 PM3/29/17
to cvx...@googlegroups.com
You cannot solve such a problem using CVXOPT.  Restricting variables to be integers is very different problem, and much harder to solve.   You can google for "integer linear programming" or something similar - there are a few open-source solvers available.

--
You received this message because you are subscribed to the Google Groups "CVXOPT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cvxopt+unsubscribe@googlegroups.com.
To post to this group, send email to cvx...@googlegroups.com.
Visit this group at https://groups.google.com/group/cvxopt.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages