Commit Graph

30 Commits

Author SHA1 Message Date
Laurent Perron
2ff000ab9a bump abseil to the latest version, adapt the code all around 2019-11-20 14:28:11 -08:00
Laurent Perron
bc43e37c90 add sat inferface to the linear solver wrapper 2019-10-18 14:39:51 +02:00
Laurent Perron
439cebb9c8 polish xpress support 2019-09-04 15:20:45 +02:00
Laurent Perron
d216e3caab remove obsolete unignore 2019-07-18 11:36:10 -07:00
Laurent Perron
8152464418 document more linear solver code 2019-07-17 07:08:02 -07:00
Laurent Perron
ef8be0d86e polish doc 2019-07-16 10:13:02 -07:00
Laurent Perron
afc4ad1214 simplify python vector swig 2019-07-05 09:32:43 +02:00
Laurent Perron
e6ff7153aa polish new linear_solver non C++ API 2019-07-01 14:13:15 +02:00
Laurent Perron
d4c088a367 test linear solver constraints(), variables(), and SetHint in Python/Java/C# 2019-07-01 13:41:17 +02:00
Laurent Perron
92891ceb01 implement #506 2019-06-29 17:20:42 +02:00
Laurent Perron
8d492a7dfc fix and test SetHint for linear_solver/Python 2019-06-29 15:54:26 +02:00
Laurent Perron
8a4ae8bff0 working SetNumTheads in Python/Java/C#; Working SetHint in java/C# 2019-06-29 12:35:15 +02:00
Laurent Perron
8ade2b9209 revert useless previous CL 2019-06-24 15:43:03 +02:00
Laurent Perron
c5554f6ea7 fix #1374 2019-06-24 11:25:24 +02:00
Laurent Perron
342d703d18 wrap linear solver proto APIs in python 2019-05-17 14:02:59 +02:00
Laurent Perron
dbef2bb42f expose SetNumThreads in python 2019-05-16 08:12:33 +02:00
Corentin Le Molgat
361df3bab6 Expose SetUB and SetLB methods on MPVariables in python. 2019-05-14 11:24:32 +02:00
Laurent Perron
aeec2312d7 fix missing export methods in python 2019-05-10 14:23:28 +02:00
Laurent Perron
2a4fc564b4 add constraint with index in linear solver (API + Proto); rewrite MPS reader/writer; update base library as needed 2019-04-18 19:18:48 +02:00
Laurent Perron
fedf3d4ff4 revamp and simplify swig support, force typed enums for C# and Java for all except the constraint_solver/routing module; port examples; Fix SAT on very large problems 2018-12-11 17:03:03 +01:00
Laurent Perron
1e59a36509 reduce swig complexity 2018-12-11 11:52:50 +01:00
Laurent Perron
589047ce90 python support int64 -> int64_t 2018-12-10 13:35:41 +01:00
Laurent Perron
87b9d55b21 update license headers 2018-11-10 18:00:53 +01:00
Laurent Perron
7a1889bb1f make name -> var or constraint optional in linear solver 2018-07-24 13:23:58 -07:00
Ying-zong Huang
b400cf8c2f Add exception handling to the solver creation call
This is a very targeted addition, which can be generalized. It
makes the following changes:

1. In the solver creation call of the Gurobi interface, i.e.
the constructor `GurobiInterface::GurobiInterface`, the GLOG
severity level is reduced to `DFATAL`, which becomes `ERROR` in
production. This means errors in calls to `GRBloadenv` no longer
automatically kill the process as a side effect.

2. An `std::runtime_error` exception is raised with the return code
and the error message from GRBloadenv. This replaces the functionality
of exiting the process when this error is unhandled. Additionally,
it enables alternate handling by the caller.

3. In the linear solver SWIG wrapper, exception wrapping is turned
on specifically for the `MPSolver::MPSolver` constructor call and
the `std::runtime_error` that may now occur there. This exception
is re-raised as the corresponding RuntimeError in the target language.

Addresses issue #699.
2018-05-24 21:40:38 -04:00
Corentin Le Molgat
e452a83dc4 Add missing enum to Python MPSolverParameters (Fix #97) 2018-04-27 18:10:59 +02:00
Laurent Perron
a12d754e8f export CPLEX in python 2018-04-03 07:28:26 +02:00
Laurent Perron
03fccb4032 improve incrementality of glop when used in the sat solver; change more copyright dates; more documentation on the gate scheduling problem 2017-10-18 11:09:13 +02:00
Laurent Perron
8c08d72260 replace hash_map and hash_set by unordered_map and unordered_set 2017-04-27 17:34:24 +02:00
Laurent Perron
66b8d23079 move src to ortools; simplified python generation; remove some namespaces in the ortools/base helper files 2017-04-26 17:30:25 +02:00