Defining parameters in CPLEX

Hello dears users,
I want to define the limit of CPU time, gap etc for CPLEX in a given integer problem. In JuMP version v0.19 I was used to define:

model=Model(with_optimizer(CPLEX.Optimizer,CPX_PARAM_TILIM=10800,CPX_PARAM_SCRIND=0,
CPX_PARAM_EPGAP=0.001))

In the new version, this command does not work.
Anyone could help me plese?
How can I define the same parameters before the optmization?
Many thanks

1 Like
model = Model(with_optimizer(CPLEX.Optimizer))
set_parameters(model, "CPX_PARAM_TILIM" => 10_800, "CPX_PARAM_SCRIND" => 0)
2 Likes

I have the following error message:

UndefVarError: set_parameters not defined
top-level scope at none:0

The version of my Packages are:
[c52e3926] Atom v0.11.3
[a076750e] CPLEX v0.6.3
[5789e2e9] FileIO v1.2.2
[7073ff75] IJulia v1.21.1
[b6b21f68] Ipopt v0.6.1
[033835bb] JLD2 v0.1.11
[4076af6c] JuMP v0.20.1
[2ddba703] Juniper v0.5.3
[e5e0dc1b] Juno v0.7.2
[91a5bcdd] Plots v0.29.1
[37e2e46d] LinearAlgebra
[de0858da] Printf
[9e88b42a] Serialization
[10745b16] Statistics

The correct is:
model = Model(with_optimizer(CPLEX.Optimizer)) set_parameters(model, “CPX_PARAM_TILIM” , 10_800, “CPX_PARAM_SCRIND” , 0)

1 Like