Commit Graph

207 Commits (596f41c47742ef5988c1d7453a8acf48b633faaf)

Author SHA1 Message Date
Alinson S. Xavier 7d55d6f34c
Use np.array for Variables.names
4 years ago
Alinson S. Xavier f69067aafd
Implement {get,put}_array; make other methods deprecated
4 years ago
Alinson S. Xavier 0a32586bf8
Use np.ndarray in Constraints
4 years ago
Alinson S. Xavier 0c4b0ea81a
Use np.ndarray in Variables
4 years ago
Alinson S. Xavier b6426462a1
Fix failing tests
4 years ago
Alinson S. Xavier 475fe3d985 Sample: do not check data by default; minor fixes
4 years ago
Alinson S. Xavier 067f0f847c
Add mip_ prefix to dynamic constraints
4 years ago
Alinson S. Xavier ca925119b3
Add static_ prefix to all static features
4 years ago
Alinson S. Xavier 10eed9b306
Don't include intermediary features in sample; rename some keys
4 years ago
Alinson S. Xavier 7d5ec1344a
Make Hdf5Sample work with bytearray
4 years ago
Alinson S. Xavier fc55a077f2
Sample: Allow numpy arrays
4 years ago
Alinson S. Xavier d30c3232e6
FileInstance.save: create file when it does not already exist
4 years ago
Alinson S. Xavier 15e08f6c36
Implement FileInstance
4 years ago
Alinson S. Xavier f1dc450cbf
Do nothing on put_scalar(None)
4 years ago
Alinson S. Xavier 6c98986675
Hdf5Sample: Return None for non-existing keys
4 years ago
Alinson S. Xavier a0f8bf15d6
Handle completely empty veclists
4 years ago
Alinson S. Xavier 3da8d532a8
Sample: handle None in vectors
4 years ago
Alinson S. Xavier 284ba15db6
Implement sample.{get,put}_bytes
4 years ago
Alinson S. Xavier 4224586d10
Remove sample.{get,set}
4 years ago
Alinson S. Xavier ef9c48d79a
Replace Hashable by str
4 years ago
Alinson S. Xavier 8d89285cb9
Implement {get,put}_vector_list
4 years ago
Alinson S. Xavier 8fc7c6ab71
Split Sample.{get,put} into {get,put}_{scalar,vector}
4 years ago
Alinson S. Xavier 0a399deeee
Implement Hdf5Sample
4 years ago
Alinson S. Xavier 021a71f60c
Reorganize feature tests; add basic sample tests
4 years ago
Alinson S. Xavier 235c3e55c2
Make Sample abstract; create MemorySample
4 years ago
Alinson S. Xavier 851b8001bb
Move features to its own package
4 years ago
Alinson S. Xavier 609c5c7694
Rename Variables and Constraints; move to internal.py
4 years ago
Alinson S. Xavier c8c29138ca
Remove unused classes and functions
4 years ago
Alinson S. Xavier cd9e5d4144
Remove sample.after_load
4 years ago
Alinson S. Xavier b4a267a524
Remove sample.after_lp
4 years ago
Alinson S. Xavier 4093ac62fd
Remove sample.after_mip
4 years ago
Alinson S. Xavier 7c4c301611
Extract instance, var and constr features into sample
4 years ago
Alinson S. Xavier 061b1349fe
Move user_cuts/lazy_enforced to sample.data
4 years ago
Alinson S. Xavier 80281df8d8
Replace instance.samples by instance.get/push_sample
4 years ago
Alinson S. Xavier a5092cc2b9
Request constraint features/categories in bulk
4 years ago
Alinson S. Xavier 438859e493
Request variable features/categories in bulk
4 years ago
Alinson S. Xavier 46a7d3fe26
BenchmarkRunner.fit: Only iterate through files twice
4 years ago
Alinson S. Xavier ddd136c661
assert_equals: Handle ndarray with booleans
4 years ago
Alinson S. Xavier 52093eb1c0
Combine np.ndarray conversion with rounding
4 years ago
Alinson S. Xavier 34c71796e1
assert_equals: Recursively convert np.ndarray
4 years ago
Alinson S. Xavier cdd38cdfb8
Make assert_equals work with np.ndarray
4 years ago
Alinson S. Xavier c494f3e804
Remove tuples from ConstraintFeatures
4 years ago
Alinson S. Xavier f9ac65bf9c
Remove tuples from VariableFeatures
4 years ago
Alinson S. Xavier 4bf4d09cb5
Remove unused classes and methods
4 years ago
Alinson S. Xavier 91c8db2225
Refactor StaticLazy; remove old constraint methods
4 years ago
Alinson S. Xavier 53d3e9d98a
Implement ConstraintFeatures.__getitem__
4 years ago
Alinson S. Xavier 0ba8cc16fd
GurobiSolver: Implement relax/enforce constraint
5 years ago
Alinson S. Xavier 0e9c8b0a49
Rename features.constraints to constraints_old
5 years ago
Alinson S. Xavier 8f73d87d2d
Fix failing test
5 years ago
Alinson S. Xavier 95e326f5f6
Use compact variable features everywhere
5 years ago
Alinson S. Xavier fec0113722
Rename features.variables to variables_old; update FeatureExtractor
5 years ago
Alinson S. Xavier 77b10b9609
Parallel processing
5 years ago
Alinson S. Xavier bec7dae6d9
Add pre argument to sample_xy
5 years ago
Alinson S. Xavier a01c179341
LearningSolver: Load each instance exactly twice during fit
5 years ago
Alinson S. Xavier ef7a50e871
Only include static features in after-load
5 years ago
Alinson S. Xavier c4a6665825
Remove obsolete methods
5 years ago
Alinson S. Xavier c26b852c67
Update UserCutsComponent
5 years ago
Alinson S. Xavier a4433916e5
Update DynamicLazyConstraintsComponent
5 years ago
Alinson S. Xavier b5411b8950
Update ObjectiveValueComponent
5 years ago
Alinson S. Xavier a9dcdb8e4e
Update PrimalSolutionComponent
5 years ago
Alinson S. Xavier d7aa31f3eb
Fix mypy errors
5 years ago
Alinson S. Xavier cb62345acf
Refactor StaticLazy
5 years ago
Alinson S. Xavier e6672a45a0
Rename more methods to _old
5 years ago
Alinson S. Xavier 6f6cd3018b
Rewrite DynamicLazy.sample_xy
5 years ago
Alinson S. Xavier bccf0e9860
Rewrite StaticLazy.sample_xy
5 years ago
Alinson S. Xavier 2979bd157c
Rewrite PrimalSolutionComponent.sample_xy
5 years ago
Alinson S. Xavier d90d7762e3
Rewrite ObjectiveValueComponent.sample_xy
5 years ago
Alinson S. Xavier 2da60dd293
Rename methods that use TrainingSample to _old
5 years ago
Alinson S. Xavier 3cfadf4e97
Pyomo: Collect variable bounds, obj_coeff, value, type
5 years ago
Alinson S. Xavier bd78518c1f
Convert MIPSolveStats into dataclass
5 years ago
Alinson S. Xavier 2bc1e21f8e
Add lp_stats to after-lp features
5 years ago
Alinson S. Xavier 945f6a091c
Convert LPSolveStats into dataclass
5 years ago
Alinson S. Xavier d85a63f869
Small fixes to Alvarez2017 features
5 years ago
Alinson S. Xavier c39231cb18
Implement a small subset of Alvarez2017 features
5 years ago
Alinson S. Xavier 9ca4cc3c24
Include additional features in instance.features
5 years ago
Alinson S. Xavier 733c8299e0
Add more variable features
5 years ago
Alinson S. Xavier 088d679f61
Redesign InternalSolver constraint methods
5 years ago
Alinson S. Xavier 735884151d
Reorganize callbacks
5 years ago
Alinson S. Xavier 9368b37139
Replace individual constraint methods by single get_constraints
5 years ago
Alinson S. Xavier 626d75f25e
Reorganize internal solver tests
5 years ago
Alinson S. Xavier a8224b5a38
Move instance fixtures into the main source; remove duplication
5 years ago
Alinson S. Xavier f3fd1e0cda
Make internal_solvers into a fixture
5 years ago
Alinson S. Xavier 3f4336f902
Always remove .mypy_cache; fix more mypy tests
5 years ago
Alinson S. Xavier 5aa434b439
Fix failing mypy tests
5 years ago
Alinson S. Xavier 157825a345
mypy: Disable implicit optionals
5 years ago
Alinson S. Xavier e9cd6d1715
Add types to remaining files; activate mypy's disallow_untyped_defs
5 years ago
Alinson S. Xavier 0232219a0e
Make InternalSolver clonable
5 years ago
Alinson S. Xavier 1cf6124757
Refer to variables by varname instead of (vname, index)
5 years ago
Alinson S. Xavier 856b595d5e PickleGzInstance: Replace implicit load by load/free methods
5 years ago
Alinson S. Xavier f495297168
Remove experimental LP components
5 years ago
Alinson S. Xavier f90f295620
Reorganize instance package
5 years ago
Alinson S. Xavier 3543a2ba92
Optimize imports
5 years ago
Alinson S. Xavier 332cdbd839
Update copyright year
5 years ago
Alinson S. Xavier b0bf42e69d
Remove obsolete extractor classes
5 years ago
Alinson S. Xavier 9e7eed1dbd
Finish rewrite of user cuts component
5 years ago
Alinson S. Xavier 9f2d7439dc
Add user cut callbacks; begin rewrite of UserCutsComponent
5 years ago
Alinson S. Xavier cfb17551f1
Make sample_xy an instance method
5 years ago
Alinson S. Xavier 54c20382c9
Finish DynamicLazyConstraintsComponent rewrite
5 years ago
Alinson S. Xavier c6aee4f90d
Make sample_ method accept instance
5 years ago
Alinson S. Xavier bb91c83187
LazyDynamic: Rewrite fit method
5 years ago