The `checker` argument lets you control the amount of type-checking that DOcplex performs on method arguments.
By default(checker='on'), DOcplex checks the type of _all_ argument methods, issuing message that are relevant to modeling;
of course this comes with a runtime cost, in the modeling phase (the solve time itself is unchanged)
Setting checker='off' disables all type-checking. Use this option only when your model has been completely tuned and debugged.
On one hand, this might speed up model build time, but unexpected arguments might well print hard-to-understand messages.
At least this option let you switch type-checking on and off
------------------------------
Philippe Couronne
------------------------------
Original Message:
Sent: Tue October 20, 2020 06:06 AM
From: Suresh Abeyweera
Subject: class docplex.mp.model.Model(name=None, checker = "on") what is checker
http://ibmdecisionoptimization.github.io/docplex-doc/mp/docplex.mp.model.html
In above link it provides some information about how to define an optimization model using docplex.
I have solved optimization model as follows.
mymodel = Model("demo_model")
I noted that a model can be defined as following method as well.
mymodel = Model(name="demo_model",checker='on');
I see in the link above it explains the usage checker,,Can someone explain with an example how we can use this feature in optimization models.How we can enhance modeling by using this 'checker' feature.
Thanks.
------------------------------
Suresh Abeyweera
------------------------------
#DecisionOptimization