cannot import name 'CutType' from 'mip'

44 views
Skip to first unread message

Soroush Safavi

unread,
Aug 9, 2020, 6:22:32 PM8/9/20
to Python-MIP
I was trying to run the "A pure cutting-planes approach for the Traveling Salesman Problem" example but I got a strange error: cannot import name 'CutType' from 'mip'.
please advise. Thanks

BR,
Soroush

Haroldo Gambini Santos

unread,
Aug 10, 2020, 10:47:50 AM8/10/20
to Soroush Safavi, Python-MIP
Hi,

Just tried this example here and it worked fine. Could you provide more
details on your environment (python version, OS, python-mip version) ?

--
=============================================================
Haroldo Gambini Santos
Department of Computer Science
Universidade Federal de Ouro Preto - UFOP
email: har...@ufop.edu.br
home/research page: www.decom.ufop.br/haroldo
> --
> You received this message because you are subscribed to the Google Groups
> "Python-MIP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> python-mip+...@googlegroups.com.
> To view this discussion on the web visithttps://groups.google.com/d/msgid/python-mip/55041eea-f727-4769-b6c3-b0db2d96e13d
> o%40googlegroups.com.
>
>

Soroush Safavi

unread,
Aug 10, 2020, 2:18:17 PM8/10/20
to Python-MIP
Hi,
My python is 3.7, Windows 10, I am not sure about my python-mip version but I assume it is the latest version. I also use Gurobi 9.0 (educational license) as solver.


On Monday, August 10, 2020 at 7:47:50 AM UTC-7, Haroldo Gambini Santos wrote:
Hi,

Just tried this example here and it worked fine. Could you provide more
details on your environment (python version, OS, python-mip version) ?

--
=============================================================
Haroldo Gambini Santos
Department of Computer Science
Universidade Federal de Ouro Preto - UFOP
email: har...@ufop.edu.br
home/research page: www.decom.ufop.br/haroldo

On Sun, 9 Aug 2020, Soroush Safavi wrote:

> I was trying to run the "A pure cutting-planes approach for the Traveling Salesman
> Problem" example but I got a strange error: cannot import name 'CutType' from
> 'mip'.please advise. Thanks
>
> BR,
> Soroush
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python-MIP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to

Soroush Safavi

unread,
Aug 11, 2020, 2:36:52 PM8/11/20
to Python-MIP
This is the error I am getting:

HAROLDO GAMBINI SANTOS

unread,
Aug 11, 2020, 8:52:45 PM8/11/20
to Soroush Safavi, Python-MIP
One thing that may be the cause:  Gurobi does not allow the access to their cut generators (at least to call them outside the b&b tree). Could you try to create your model entering   =  Model(solver_name='cbc') ?



--
You received this message because you are subscribed to the Google Groups "Python-MIP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-mip+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-mip/9d74754e-6c89-4375-819e-9b9bce3498e6o%40googlegroups.com.


--
=============================================================
Haroldo Gambini Santos
Computing Department

Universidade Federal de Ouro Preto - UFOP
email: har...@ufop.edu.br
home/research page: www.decom.ufop.br/haroldo


It has long been an axiom of mine that the little things are infinitely
the most important.
-- Sir Arthur Conan Doyle, "A Case of Identity"
Reply all
Reply to author
Forward
0 new messages