tune_problem_set(self,
filenames,
filetypes=None,
fixed_parameters_and_values=None)
|
|
Tunes parameters for a set of problems.
filenames must be a sequence of strings specifying a set of
problems to tune.
If filetypes is given, it must be a sequence of the same
length as filenames also consisting of strings that specify
the types of the corresponding files.
If fixed_parameters_and_values is given, it may be either a
ParameterSet instance or a sequence of sequences of length 2
containing instances of the Parameter class that are to be fixed
during the tuning process and the values at which they are to be
fixed.
tune_problem_set returns the status of the tuning procedure,
which is an attribute of parameters.tuning_status.
>>> import cplex
>>> c = cplex.Cplex()
>>> out = c.set_results_stream(None)
>>> out = c.set_log_stream(None)
>>> ps = c.create_parameter_set()
>>> ps.add(c.parameters.lpmethod,
... c.parameters.lpmethod.values.auto)
>>> status = c.parameters.tune_problem_set(
... filenames=["lpex.mps", "example.mps"],
... fixed_parameters_and_values=ps)
>>> c.parameters.tuning_status[status]
'completed'
>>> status = c.parameters.tune_problem_set(
... filenames=["lpex.mps", "example.mps"],
... fixed_parameters_and_values=[
... (c.parameters.lpmethod,
... c.parameters.lpmethod.values.auto)])
>>> c.parameters.tuning_status[status]
'completed'
>>> status = c.parameters.tune_problem_set(
... filenames=["lpex.mps", "example.mps"])
>>> c.parameters.tuning_status[status]
'completed'
|