CBC APPSI

90 views
Skip to first unread message

André Lisboa

unread,
Feb 2, 2024, 1:53:24 PMFeb 2
to Pyomo Forum
Hey,

Has anyone tried to use CBC in APPSI?

I am having the following issue:
Solver <class 'pyomo.contrib.appsi.solvers.cbc.Cbc'> is not available (NeedsCompiledExtension)


Best regards,
André Lisboa

JUAN CAMILO CAMARGO BERRUECO

unread,
Feb 2, 2024, 2:08:58 PMFeb 2
to Pyomo Forum
Did you already build the extension?

You need to compile using:
https://pyomo.readthedocs.io/en/stable/library_reference/appsi/appsi.html#installation

Yohan Fleuriot

unread,
Feb 2, 2024, 2:11:58 PMFeb 2
to Pyomo Forum
Hi,
python >>> from pyomo.contrib.appsi.build import build_appsi >>> build_appsi()
Or else I think you can execute: pyomo build_extensions

André Lisboa

unread,
Feb 6, 2024, 11:42:02 AMFeb 6
to Pyomo Forum
Thank you! Was missing the installation of Micrososft C++ Build tools :  https://visualstudio.microsoft.com/visual-cpp-build-tools/
Reply all
Reply to author
Forward
0 new messages