How to set Cbc Parameters

Hi
I am trying to set parameters for Cbc Solver

Z_OP = Model(with_optimizer(Cbc.Optimizer))
    set_parameter(Z_OP, "preProcess", off)
    set_parameter(Z_OP, "CliqueCuts", Root)

error:
UndefVarError: Off not defined
UndefVarError: Root not defined

Does anyone know how to fix the error and where can I find updated information on the command lines?

Thank you

Have you defined the variables off and Root? Seems to me that you want to pass either Strings or some constant inside the Cbc module but is instead passing names of variables that do not exist in the scope instead.

2 Likes

Use

set_parameter(Z_OP, "preProcess", "off")
2 Likes

thank you for your help! :slight_smile: