Commit Graph

193 Commits

Author SHA1 Message Date
Laurent Perron
bd04f656b3 rename MODEL_SAT to FEASIBLE, MODEL_UNSAT to INFEASIBLE 2018-07-02 15:35:40 +02:00
Laurent Perron
72db1d9ef2 run pyformat on python examples 2018-06-11 11:51:18 +02:00
Laurent Perron
85339803e8 work on sat scheduling doc; fix C# code to accept optional interval vars without optional start and end variables; update code_samples with new code from doc 2018-06-07 15:33:25 +02:00
Laurent Perron
bd060bc400 more code samples for sat 2018-06-06 15:28:23 +02:00
Laurent Perron
87636e392f fix typo 2018-06-05 16:47:08 +02:00
Laurent Perron
74456de74c simple cryptarithmetic examples for sat doc 2018-06-05 15:54:45 +02:00
Laurent Perron
2a51c65e97 expand cp_model.py to offer more API on the solution callback; simplify flexible_jobshop_sat.py 2018-05-31 14:50:12 -07:00
Laurent Perron
1fac6dcd73 add licenses to examples 2018-05-31 10:54:36 -07:00
Laurent Perron
0b86e8e5f2 Merge branch 'master' of https://github.com/google/or-tools 2018-05-31 10:53:47 -07:00
Laurent Perron
333a004878 flexible jobshop examples in python CP-SAT 2018-05-31 10:52:07 -07:00
Corentin Le Molgat
9b55324fd2 Fix cvrptw.py (Fix #708) 2018-05-31 10:45:00 +02:00
Laurent Perron
e198505927 add C# samples to the SAT md doc 2018-05-30 14:31:59 -07:00
Laurent Perron
9402f58d1d change sat internal API; stop ignoring random seed in glop 2018-05-16 13:43:29 +02:00
Laurent Perron
cb1fc93b94 fix wedding_optimal_chart_sat.py 2018-05-15 14:04:53 +02:00
Laurent Perron
798fa68a73 remove bad character 2018-05-15 13:57:28 +02:00
lperron
6efa6fb88d Merge pull request #692 from turadg/patch-1
port wedding_optimal_chart.cs to Python
2018-05-15 13:56:17 +02:00
Laurent Perron
23c58a71db Merge branch 'master' of https://github.com/google/or-tools 2018-05-15 13:54:25 +02:00
Laurent Perron
6d104e2127 new example 2018-05-15 13:54:21 +02:00
Turadg Aleahmad
f655eb3e7e port wedding_optimal_chart.cs to Python 2018-05-14 21:56:49 -07:00
qq88976321
e95fee9a63 Fix variable misused. 2018-05-03 21:38:48 +08:00
Corentin Le Molgat
786bfce05f Update routing python examples
- add vrp.py
- add vrpgs.py
- add cvrp.py
- update cvrptw.py
2018-04-27 16:47:49 +02:00
Corentin Le Molgat
fe9ddb78c8 Rework cvrptw.py
Try to use plausible data (e.g. currently, vehicles move at 36,000km/h...)
2018-04-27 14:17:05 +02:00
Laurent Perron
2c8a97e994 correct Hakan email address 2018-02-19 15:21:05 +01:00
Laurent Perron
6820d51741 more work on sat c# 2018-02-06 19:47:11 +01:00
Corentin Le Molgat
8bd5acee1a Add Test & Examples
Tests:
- Add cc test
- Add python test

Examples:
- Add examples/cpp
- Add examples/data
- Add examples/notebook
- Add examples/python

Signed-off-by: Corentin Le Molgat <corentinl@google.com>
2018-01-19 15:03:25 +01:00
Laurent Perron
88ef3d0302 remove std:: from std::min|max in comments; performance improvements on the SAT, bug fixes 2018-01-10 13:21:06 +01:00
Laurent Perron
c363991e2b rearchitecture glop code 2017-12-05 16:45:10 +01:00
Laurent Perron
fc711a5748 run_from_ipython -> RunFromIPython 2017-11-24 14:47:10 +01:00
Laurent Perron
e79811e9bb cleanup is_run_from_ipython() 2017-11-24 13:49:39 +01:00
Laurent Perron
0f83e0c3d3 defensive import of ortools/sat/python/visualization.py 2017-11-24 13:33:03 +01:00
Laurent Perron
89edd70833 add examples that captures code samples in the documentation 2017-11-23 15:25:53 +01:00
Laurent Perron
f84fe1b883 cp_model.AddSumConstraint(variables, lb, ub) 2017-11-23 11:28:47 +01:00
Laurent Perron
238c357994 new python nurses examples in cp/sat and cp 2017-11-23 11:26:11 +01:00
Laurent Perron
2126949bb5 improve SAT/CP example 2017-11-22 16:59:12 +01:00
Laurent Perron
26e9fc9e52 2 more examples CP and SAT/CP 2017-11-22 16:55:47 +01:00
Laurent Perron
6b9bf72c03 improve logging of cp_is_fun_sat.py 2017-11-22 16:17:28 +01:00
Laurent Perron
3aca895d96 add more examples from the doc 2017-11-22 15:56:22 +01:00
Laurent Perron
1f34325cb1 fix indent and dos line format 2017-11-22 15:18:01 +01:00
Laurent Perron
b645ce1f52 add license to examples; add example from the documentation 2017-11-22 14:55:44 +01:00
Laurent Perron
b404a0b989 scrub python sat examples from colab features 2017-11-22 11:25:51 +01:00
Laurent Perron
7ee023e15d new trivial sat python example 2017-11-21 14:15:26 +01:00
Laurent Perron
21f9744862 modify python sat examples to use visualization when run from IPython; change corresponding notebooks 2017-11-21 03:54:06 +01:00
Laurent Perron
4abd300cdd revert python example 2017-11-20 17:06:16 +01:00
Laurent Perron
d4a81c143c py to ipynb 2017-11-20 17:04:25 +01:00
Laurent Perron
a4a06a357a improve rcpsp parser and rcpsp_sat.py 2017-11-16 17:48:30 +01:00
Laurent Perron
14564c0917 simplify reservoir expand; change a bit the enqueue protocol in the sat solver 2017-11-14 16:58:07 +01:00
Laurent Perron
ae3007234b fix sat python reservoir code; continue working on rcpsp_sat.py to support consumer/producer problems 2017-11-13 15:45:02 +01:00
Laurent Perron
e14ee86de3 move rcpsp parser to ortools/data; continue working on SAT 2017-11-07 15:45:52 +01:00
Laurent Perron
bdd72fe1b1 Add SearchForAllSolution in sat cp_model.py API; add code to export model from the steel_mill_slab_sat code 2017-11-05 10:31:52 +01:00
Laurent Perron
a4716f97f5 simplify steel_mill_slab_sat after previous fix 2017-11-04 23:52:44 +01:00