From 0f4cb855033e6edeb14c86ff75fbac12a2f8e8f9 Mon Sep 17 00:00:00 2001 From: Mohammed Ghannam Date: Mon, 24 Feb 2025 18:11:29 +0100 Subject: [PATCH] Fix syntax highlighting --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d3ce44a8..6bc0a5998 100644 --- a/README.md +++ b/README.md @@ -44,20 +44,20 @@ following steps are always required when using the interface: 1) It is necessary to import python-scip in your code. This is achieved by including the line -``` {.sourceCode .python} +```python from pyscipopt import Model ``` 2) Create a solver instance. -``` {.sourceCode .python} +```python model = Model("Example") # model name is optional ``` 3) Access the methods in the `scip.pxi` file using the solver/model instance `model`, e.g.: -``` {.sourceCode .python} +```python x = model.addVar("x") y = model.addVar("y", vtype="INTEGER") model.setObjective(x + y)