From c0f46ea2202f60761c04d5c9455881cb72ea49bf Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Mon, 11 Sep 2023 18:38:30 +1200 Subject: [PATCH] Clarify how to set options in README (#436) --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index b253668..c639a6d 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,13 @@ List of supported model attributes: Options match those of the C API in the [CPLEX documentation](https://www.ibm.com/support/knowledgecenter/SSSA5P_12.10.0/ilog.odms.cplex.help/CPLEX/Parameters/topics/introListAlpha.html). +Set options using `JuMP.set_attribute`: +```julia +using JuMP, CPLEX +model = Model(CPLEX.Optimizer) +set_attribute(model, "CPX_PARAM_EPINT", 1e-8) +``` + ## Callbacks CPLEX.jl provides a solver-specific callback to CPLEX: