Skip to content

Commit 41513cc

Browse files
committed
Add some docs and bump to 0.4.1
1 parent 97dc4a2 commit 41513cc

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

Diff for: docs/source/changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.4.1
4+
- Support writing solution files in HiGHS
5+
- Pass the names of variables and constraints to HiGHS
6+
- Add `model.close()` and `env.close()` methods to allow users release the license of commercial solvers manually
7+
38
## 0.4.0
49
- Add `model.add_m_variables` and `model.add_m_linear_constraints` matrix modeling API
510
- Add `model.computeIIS` and IIS related attributes for constraint and variable

Diff for: docs/source/gurobi.md

+12
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ env.start()
2929
model = gurobi.Model(env)
3030
```
3131

32+
For users who want to release the license immediately after the optimization, you can call the `close` method of all models created and the `gurobi.Env` object. It applies to other commercial solvers supported as well.
33+
34+
```python
35+
env = gurobi.Env()
36+
model = gurobi.Model(env)
37+
38+
# do something with the model
39+
40+
model.close()
41+
env.close()
42+
```
43+
3244
## The capability of `gurobi.Model`
3345

3446
### Supported constraints

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "pyoptinterface"
7-
version = "0.4.0"
7+
version = "0.4.1"
88
description = "Python interface to multiple optimization solvers"
99
readme = "README.md"
1010
requires-python = ">=3.9"

0 commit comments

Comments
 (0)