Skip to content

Commit

Permalink
Fix Khalil2016Obs attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Apr 14, 2021
1 parent 97aaa37 commit 9164a51
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/src/ecole/core/observation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ void bind_submodule(py::module_ const& m) {
represent features related to these variables.
See [Khalil2016]_ for a complete reference on this observation function.
The first :py:attribute:`Khalil2016Obs.n_static_features` are static (they do not change through the solving
process), and the remaining :py:attribute:`Khalil2016Obs.n_dynamic_features` dynamic.
The first :py:attr:`Khalil2016Obs.n_static_features` are static (they do not change through the solving
process), and the remaining :py:attr:`Khalil2016Obs.n_dynamic_features` dynamic.
.. [Khalil2016]
Khalil, Elias Boutros, Pierre Le Bodic, Le Song, George Nemhauser, and Bistra Dilkina.
Expand All @@ -280,7 +280,9 @@ void bind_submodule(py::module_ const& m) {
.def_readwrite_xtensor(
"features",
&Khalil2016Obs::features,
"A matrix where each row represents a variable, and each column a feature of the variables.");
"A matrix where each row represents a variable, and each column a feature of the variables.")
.def_readonly_static("n_static_features", &Khalil2016Obs::n_static_features)
.def_readonly_static("n_dynamic_features", &Khalil2016Obs::n_dynamic_features);

py::enum_<Khalil2016Obs::Features>(khalil2016_obs, "Features")
.value("obj_coef", Khalil2016Obs::Features::obj_coef)
Expand Down

0 comments on commit 9164a51

Please sign in to comment.