Skip to content

Commit 6863a6f

Browse files
committed
version 2.4.61
1 parent 8931daa commit 6863a6f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/cp/basic/golomb_ruler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
mdl.add((marks[1] - marks[0]) < (marks[ORDER - 1] - marks[ORDER - 2]))
6161

6262
# Minimize ruler size (position of the last mark)
63-
mdl.minimize(marks[ORDER - 1])
63+
mdl.add(mdl.minimize(marks[ORDER - 1]))
6464

6565

6666
#-----------------------------------------------------------------------------

examples/cp/jupyter/scheduling_tuto.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
"\n",
175175
"For example:\n",
176176
"<code>\n",
177-
" mdl.minimize(mdl.endOf(tasks[\"moving\"]))\n",
177+
" mdl.add(mdl.minimize(mdl.endOf(tasks[\"moving\"])))\n",
178178
"</code>\n",
179179
"indicates that the end of the interval variable <code>tasks[\"moving\"]</code> needs to be minimized."
180180
]

examples/mp/jupyter/incremental_modeling.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -866,21 +866,21 @@
866866
"metadata": {
867867
"gist_id": "6011986",
868868
"kernelspec": {
869-
"display_name": "Python 3",
869+
"display_name": "Python 2",
870870
"language": "python",
871-
"name": "python3"
871+
"name": "python2"
872872
},
873873
"language_info": {
874874
"codemirror_mode": {
875875
"name": "ipython",
876-
"version": 3
876+
"version": 2
877877
},
878878
"file_extension": ".py",
879879
"mimetype": "text/x-python",
880880
"name": "python",
881881
"nbconvert_exporter": "python",
882-
"pygments_lexer": "ipython3",
883-
"version": "3.5.3"
882+
"pygments_lexer": "ipython2",
883+
"version": "2.7.11"
884884
}
885885
},
886886
"nbformat": 4,

0 commit comments

Comments
 (0)