-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy pathscip.pyi
More file actions
2259 lines (2191 loc) · 83 KB
/
scip.pyi
File metadata and controls
2259 lines (2191 loc) · 83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
from typing import ClassVar, Union, overload
import numpy as np
from _typeshed import Incomplete
from typing_extensions import disjoint_base
CONST: Term
EventNames: dict
MAJOR: int
MINOR: int
Operator: Op
PATCH: int
PY_SCIP_CALL: Incomplete
StageNames: dict
TYPE_CHECKING: bool
_SCIP_BOUNDTYPE_TO_STRING: dict
_core_dot: Incomplete
_core_dot_2d: Incomplete
_core_sum: Incomplete
_expr_richcmp: Incomplete
_is_number: Incomplete
buildGenExprObj: Incomplete
cos: Incomplete
exp: Incomplete
expr_to_array: Incomplete
expr_to_nodes: Incomplete
is_memory_freed: Incomplete
log: Incomplete
print_memory_in_use: Incomplete
quickprod: Incomplete
quicksum: Incomplete
readStatistics: Incomplete
sin: Incomplete
sqrt: Incomplete
str_conversion: Incomplete
value_to_array: Incomplete
@disjoint_base
class Benders:
model: Incomplete
name: Incomplete
def __init__(self) -> None: ...
def benderscreatesub(self, probnumber: Incomplete) -> Incomplete: ...
def bendersexit(self) -> Incomplete: ...
def bendersexitpre(self) -> Incomplete: ...
def bendersexitsol(self) -> Incomplete: ...
def bendersfree(self) -> Incomplete: ...
def bendersfreesub(self, probnumber: Incomplete) -> Incomplete: ...
def bendersgetvar(
self, variable: Incomplete, probnumber: Incomplete
) -> Incomplete: ...
def bendersinit(self) -> Incomplete: ...
def bendersinitpre(self) -> Incomplete: ...
def bendersinitsol(self) -> Incomplete: ...
def benderspostsolve(
self,
solution: Incomplete,
enfotype: Incomplete,
mergecandidates: Incomplete,
npriomergecands: Incomplete,
checkint: Incomplete,
infeasible: Incomplete,
) -> Incomplete: ...
def benderspresubsolve(
self, solution: Incomplete, enfotype: Incomplete, checkint: Incomplete
) -> Incomplete: ...
def benderssolvesub(
self, solution: Incomplete, probnumber: Incomplete
) -> Incomplete: ...
def benderssolvesubconvex(
self, solution: Incomplete, probnumber: Incomplete, onlyconvex: Incomplete
) -> Incomplete: ...
@disjoint_base
class Benderscut:
benders: Incomplete
model: Incomplete
name: Incomplete
def __init__(self) -> None: ...
def benderscutexec(
self, solution: Incomplete, probnumber: Incomplete, enfotype: Incomplete
) -> Incomplete: ...
def benderscutexit(self) -> Incomplete: ...
def benderscutexitsol(self) -> Incomplete: ...
def benderscutfree(self) -> Incomplete: ...
def benderscutinit(self) -> Incomplete: ...
def benderscutinitsol(self) -> Incomplete: ...
@disjoint_base
class BoundChange:
def __init__(self) -> None: ...
def getBoundchgtype(self) -> Incomplete: ...
def getBoundtype(self) -> Incomplete: ...
def getNewBound(self) -> Incomplete: ...
def getVar(self) -> Incomplete: ...
def isRedundant(self) -> Incomplete: ...
@disjoint_base
class Branchrule:
model: Incomplete
def __init__(self) -> None: ...
def branchexecext(self, allowaddcons: Incomplete) -> Incomplete: ...
def branchexeclp(self, allowaddcons: Incomplete) -> Incomplete: ...
def branchexecps(self, allowaddcons: Incomplete) -> Incomplete: ...
def branchexit(self) -> Incomplete: ...
def branchexitsol(self) -> Incomplete: ...
def branchfree(self) -> Incomplete: ...
def branchinit(self) -> Incomplete: ...
def branchinitsol(self) -> Incomplete: ...
@disjoint_base
class Column:
data: Incomplete
def __init__(self) -> None: ...
def getAge(self) -> Incomplete: ...
def getBasisStatus(self) -> Incomplete: ...
def getLPPos(self) -> Incomplete: ...
def getLb(self) -> Incomplete: ...
def getObjCoeff(self) -> Incomplete: ...
def getPrimsol(self) -> Incomplete: ...
def getUb(self) -> Incomplete: ...
def getVar(self) -> Incomplete: ...
def isIntegral(self) -> Incomplete: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: object) -> bool: ...
def __gt__(self, other: object) -> bool: ...
def __hash__(self) -> int: ...
def __le__(self, other: object) -> bool: ...
def __lt__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
@disjoint_base
class ColumnExact:
data: Incomplete
def __init__(self) -> None: ...
@disjoint_base
class Conshdlr:
model: Incomplete
name: Incomplete
def __init__(self) -> None: ...
def consactive(self, constraint: Incomplete) -> Incomplete: ...
def conscheck(
self,
constraints: Incomplete,
solution: Incomplete,
checkintegrality: Incomplete,
checklprows: Incomplete,
printreason: Incomplete,
completely: Incomplete,
) -> Incomplete: ...
def conscopy(self) -> Incomplete: ...
def consdeactive(self, constraint: Incomplete) -> Incomplete: ...
def consdelete(self, constraint: Incomplete) -> Incomplete: ...
def consdelvars(self, constraints: Incomplete) -> Incomplete: ...
def consdisable(self, constraint: Incomplete) -> Incomplete: ...
def consenable(self, constraint: Incomplete) -> Incomplete: ...
def consenfolp(
self,
constraints: Incomplete,
nusefulconss: Incomplete,
solinfeasible: Incomplete,
) -> Incomplete: ...
def consenfops(
self,
constraints: Incomplete,
nusefulconss: Incomplete,
solinfeasible: Incomplete,
objinfeasible: Incomplete,
) -> Incomplete: ...
def consenforelax(
self,
solution: Incomplete,
constraints: Incomplete,
nusefulconss: Incomplete,
solinfeasible: Incomplete,
) -> Incomplete: ...
def consexit(self, constraints: Incomplete) -> Incomplete: ...
def consexitpre(self, constraints: Incomplete) -> Incomplete: ...
def consexitsol(
self, constraints: Incomplete, restart: Incomplete
) -> Incomplete: ...
def consfree(self) -> Incomplete: ...
def consgetdivebdchgs(self) -> Incomplete: ...
def consgetnvars(self, constraint: Incomplete) -> Incomplete: ...
def consgetpermsymgraph(self) -> Incomplete: ...
def consgetsignedpermsymgraph(self) -> Incomplete: ...
def consgetvars(self, constraint: Incomplete) -> Incomplete: ...
def consinit(self, constraints: Incomplete) -> Incomplete: ...
def consinitlp(self, constraints: Incomplete) -> Incomplete: ...
def consinitpre(self, constraints: Incomplete) -> Incomplete: ...
def consinitsol(self, constraints: Incomplete) -> Incomplete: ...
def conslock(
self,
constraint: Incomplete,
locktype: Incomplete,
nlockspos: Incomplete,
nlocksneg: Incomplete,
) -> Incomplete: ...
def consparse(self) -> Incomplete: ...
def conspresol(
self,
constraints: Incomplete,
nrounds: Incomplete,
presoltiming: Incomplete,
nnewfixedvars: Incomplete,
nnewaggrvars: Incomplete,
nnewchgvartypes: Incomplete,
nnewchgbds: Incomplete,
nnewholes: Incomplete,
nnewdelconss: Incomplete,
nnewaddconss: Incomplete,
nnewupgdconss: Incomplete,
nnewchgcoefs: Incomplete,
nnewchgsides: Incomplete,
result_dict: Incomplete,
) -> Incomplete: ...
def consprint(self, constraint: Incomplete) -> Incomplete: ...
def consprop(
self,
constraints: Incomplete,
nusefulconss: Incomplete,
nmarkedconss: Incomplete,
proptiming: Incomplete,
) -> Incomplete: ...
def consresprop(self) -> Incomplete: ...
def conssepalp(
self, constraints: Incomplete, nusefulconss: Incomplete
) -> Incomplete: ...
def conssepasol(
self, constraints: Incomplete, nusefulconss: Incomplete, solution: Incomplete
) -> Incomplete: ...
def constrans(self, sourceconstraint: Incomplete) -> Incomplete: ...
@disjoint_base
class Constant(GenExpr):
number: Incomplete
def __init__(self, *args: Incomplete, **kwargs: Incomplete) -> None: ...
@disjoint_base
class Constraint:
data: Incomplete
name: Incomplete
def __init__(self) -> None: ...
def getConshdlrName(self) -> Incomplete: ...
def isActive(self) -> Incomplete: ...
def isChecked(self) -> Incomplete: ...
def isDynamic(self) -> Incomplete: ...
def isEnforced(self) -> Incomplete: ...
def isInitial(self) -> Incomplete: ...
def isKnapsack(self) -> Incomplete: ...
def isLinear(self) -> Incomplete: ...
def isLinearType(self) -> Incomplete: ...
def isLocal(self) -> Incomplete: ...
def isModifiable(self) -> Incomplete: ...
def isNonlinear(self) -> Incomplete: ...
def isOriginal(self) -> Incomplete: ...
def isPropagated(self) -> Incomplete: ...
def isRemovable(self) -> Incomplete: ...
def isSeparated(self) -> Incomplete: ...
def isStickingAtNode(self) -> Incomplete: ...
def ptr(self) -> Incomplete: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: object) -> bool: ...
def __gt__(self, other: object) -> bool: ...
def __hash__(self) -> int: ...
def __le__(self, other: object) -> bool: ...
def __lt__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
@disjoint_base
class Cutsel:
model: Incomplete
def __init__(self) -> None: ...
def cutselexit(self) -> Incomplete: ...
def cutselexitsol(self) -> Incomplete: ...
def cutselfree(self) -> Incomplete: ...
def cutselinit(self) -> Incomplete: ...
def cutselinitsol(self) -> Incomplete: ...
def cutselselect(
self,
cuts: Incomplete,
forcedcuts: Incomplete,
root: Incomplete,
maxnselectedcuts: Incomplete,
) -> Incomplete: ...
@disjoint_base
class DomainChanges:
def __init__(self) -> None: ...
def getBoundchgs(self) -> Incomplete: ...
@disjoint_base
class Event:
data: Incomplete
name: Incomplete
def __init__(self) -> None: ...
def _getEventNames(self) -> Incomplete: ...
def getName(self) -> Incomplete: ...
def getNewBound(self) -> Incomplete: ...
def getNode(self) -> Incomplete: ...
def getOldBound(self) -> Incomplete: ...
def getRow(self) -> Incomplete: ...
def getType(self) -> Incomplete: ...
def getVar(self) -> Incomplete: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: object) -> bool: ...
def __gt__(self, other: object) -> bool: ...
def __hash__(self) -> int: ...
def __le__(self, other: object) -> bool: ...
def __lt__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
@disjoint_base
class Eventhdlr:
model: Incomplete
name: Incomplete
def __init__(self) -> None: ...
def eventcopy(self) -> Incomplete: ...
def eventdelete(self) -> Incomplete: ...
def eventexec(self, event: Incomplete) -> Incomplete: ...
def eventexit(self) -> Incomplete: ...
def eventexitsol(self) -> Incomplete: ...
def eventfree(self) -> Incomplete: ...
def eventinit(self) -> Incomplete: ...
def eventinitsol(self) -> Incomplete: ...
@disjoint_base
class Expr:
terms: Incomplete
def __init__(self, terms: Incomplete = ...) -> None: ...
def degree(self) -> Incomplete: ...
def normalize(self) -> Incomplete: ...
def __abs__(self) -> Incomplete: ...
def __add__(self, other: Incomplete) -> Incomplete: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: object) -> bool: ...
def __getitem__(self, index: Incomplete) -> Incomplete: ...
def __gt__(self, other: object) -> bool: ...
def __iadd__(self, other: Incomplete) -> Incomplete: ... # noqa: PYI034
def __iter__(self) -> Incomplete: ...
def __le__(self, other: object) -> bool: ...
def __lt__(self, other: object) -> bool: ...
def __mul__(self, other: Incomplete) -> Incomplete: ...
def __ne__(self, other: object) -> bool: ...
def __neg__(self) -> Expr: ...
def __pow__(self, other: Incomplete, modulo: Incomplete = ...) -> Incomplete: ...
def __radd__(self, other: Incomplete) -> Incomplete: ...
def __rmul__(self, other: Incomplete) -> Incomplete: ...
def __rpow__(self, other: Incomplete) -> Incomplete: ...
def __rsub__(self, other: Incomplete) -> Incomplete: ...
def __rtruediv__(self, other: Incomplete) -> Incomplete: ...
def __sub__(self, other: Incomplete) -> Incomplete: ...
def __truediv__(self, other: Incomplete) -> Incomplete: ...
@disjoint_base
class ExprCons:
_lhs: Incomplete
_rhs: Incomplete
expr: Incomplete
def __init__(
self, expr: Incomplete, lhs: Incomplete = ..., rhs: Incomplete = ...
) -> None: ...
def normalize(self) -> Incomplete: ...
def __bool__(self) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: object) -> bool: ...
def __gt__(self, other: object) -> bool: ...
def __le__(self, other: object) -> bool: ...
def __lt__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
@disjoint_base
class GenExpr:
_op: Incomplete
children: Incomplete
def __init__(self) -> None: ...
def degree(self) -> Incomplete: ...
def getOp(self) -> Incomplete: ...
def __abs__(self) -> GenExpr: ...
def __add__(self, other: Incomplete) -> Incomplete: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: object) -> bool: ...
def __gt__(self, other: object) -> bool: ...
def __le__(self, other: object) -> bool: ...
def __lt__(self, other: object) -> bool: ...
def __mul__(self, other: Incomplete) -> Incomplete: ...
def __ne__(self, other: object) -> bool: ...
def __neg__(self) -> GenExpr: ...
def __pow__(self, other: Incomplete, modulo: Incomplete = ...) -> Incomplete: ...
def __radd__(self, other: Incomplete) -> Incomplete: ...
def __rmul__(self, other: Incomplete) -> Incomplete: ...
def __rpow__(self, other: Incomplete) -> Incomplete: ...
def __rsub__(self, other: Incomplete) -> Incomplete: ...
def __rtruediv__(self, other: Incomplete) -> Incomplete: ...
def __sub__(self, other: Incomplete) -> Incomplete: ...
def __truediv__(self, other: Incomplete) -> Incomplete: ...
@disjoint_base
class Heur:
model: Incomplete
name: Incomplete
def __init__(self) -> None: ...
def heurexec(
self, heurtiming: Incomplete, nodeinfeasible: Incomplete
) -> Incomplete: ...
def heurexit(self) -> Incomplete: ...
def heurexitsol(self) -> Incomplete: ...
def heurfree(self) -> Incomplete: ...
def heurinit(self) -> Incomplete: ...
def heurinitsol(self) -> Incomplete: ...
@disjoint_base
class IIS:
def __init__(self) -> None: ...
def getNNodes(self) -> Incomplete: ...
def getSubscip(self) -> Incomplete: ...
def getTime(self) -> Incomplete: ...
def greedyMakeIrreducible(self) -> Incomplete: ...
def isSubscipInfeasible(self) -> Incomplete: ...
def isSubscipIrreducible(self) -> Incomplete: ...
def setSubscipInfeasible(self, infeasible: Incomplete) -> Incomplete: ...
def setSubscipIrreducible(self, irreducible: Incomplete) -> Incomplete: ...
@disjoint_base
class IISfinder:
iis: Incomplete
def __init__(self) -> None: ...
def iisfinderexec(self) -> Incomplete: ...
def iisfinderfree(self) -> Incomplete: ...
@disjoint_base
class LP:
name: Incomplete
def __init__(self, name: Incomplete = ..., sense: Incomplete = ...) -> None: ...
def addCol(
self,
entries: Incomplete,
obj: Incomplete = ...,
lb: Incomplete = ...,
ub: Incomplete = ...,
) -> Incomplete: ...
def addCols(
self,
entrieslist: Incomplete,
objs: Incomplete = ...,
lbs: Incomplete = ...,
ubs: Incomplete = ...,
) -> Incomplete: ...
def addRow(
self, entries: Incomplete, lhs: Incomplete = ..., rhs: Incomplete = ...
) -> Incomplete: ...
def addRows(
self, entrieslist: Incomplete, lhss: Incomplete = ..., rhss: Incomplete = ...
) -> Incomplete: ...
def chgBound(
self, col: Incomplete, lb: Incomplete, ub: Incomplete
) -> Incomplete: ...
def chgCoef(
self, row: Incomplete, col: Incomplete, newval: Incomplete
) -> Incomplete: ...
def chgObj(self, col: Incomplete, obj: Incomplete) -> Incomplete: ...
def chgSide(
self, row: Incomplete, lhs: Incomplete, rhs: Incomplete
) -> Incomplete: ...
def clear(self) -> Incomplete: ...
def delCols(self, firstcol: Incomplete, lastcol: Incomplete) -> Incomplete: ...
def delRows(self, firstrow: Incomplete, lastrow: Incomplete) -> Incomplete: ...
def getActivity(self) -> Incomplete: ...
def getBasisInds(self) -> Incomplete: ...
def getBounds(
self, firstcol: Incomplete = ..., lastcol: Incomplete = ...
) -> Incomplete: ...
def getDual(self) -> Incomplete: ...
def getDualRay(self) -> Incomplete: ...
def getIntParam(self, param: Incomplete) -> Incomplete: ...
def getNIterations(self) -> Incomplete: ...
def getObjVal(self) -> Incomplete: ...
def getPrimal(self) -> Incomplete: ...
def getPrimalRay(self) -> Incomplete: ...
def getRealParam(self, param: Incomplete) -> Incomplete: ...
def getRedcost(self) -> Incomplete: ...
def getSides(
self, firstrow: Incomplete = ..., lastrow: Incomplete = ...
) -> Incomplete: ...
def infinity(self) -> Incomplete: ...
def isDualFeasible(self) -> Incomplete: ...
def isInfinity(self, val: Incomplete) -> Incomplete: ...
def isOptimal(self) -> Incomplete: ...
def isPrimalFeasible(self) -> Incomplete: ...
def ncols(self) -> Incomplete: ...
def nrows(self) -> Incomplete: ...
def readLP(self, filename: Incomplete) -> Incomplete: ...
def setIntParam(self, param: Incomplete, value: Incomplete) -> Incomplete: ...
def setRealParam(self, param: Incomplete, value: Incomplete) -> Incomplete: ...
def solve(self, dual: Incomplete = ...) -> Incomplete: ...
def writeLP(self, filename: Incomplete) -> Incomplete: ...
class MatrixConstraint(np.ndarray):
def getConshdlrName(self) -> Incomplete: ...
def isActive(self) -> Incomplete: ...
def isChecked(self) -> Incomplete: ...
def isDynamic(self) -> Incomplete: ...
def isEnforced(self) -> Incomplete: ...
def isInitial(self) -> Incomplete: ...
def isLinear(self) -> Incomplete: ...
def isLocal(self) -> Incomplete: ...
def isModifiable(self) -> Incomplete: ...
def isNonlinear(self) -> Incomplete: ...
def isPropagated(self) -> Incomplete: ...
def isRemovable(self) -> Incomplete: ...
def isSeparated(self) -> Incomplete: ...
def isStickingAtNode(self) -> Incomplete: ...
class MatrixExpr(np.ndarray):
def _evaluate(self, sol: Incomplete) -> Incomplete: ...
def __array_ufunc__(
self,
ufunc: Incomplete,
method: Incomplete,
*args: Incomplete,
**kwargs: Incomplete,
) -> Incomplete: ...
class MatrixExprCons(np.ndarray):
def __array_ufunc__(
self,
ufunc: Incomplete,
method: Incomplete,
*args: Incomplete,
**kwargs: Incomplete,
) -> Incomplete: ...
def __eq__(self, other: object) -> bool: ...
class MatrixGenExpr(MatrixExpr): ...
class MatrixVariable(MatrixExpr):
def getAvgSol(self) -> Incomplete: ...
def getCol(self) -> Incomplete: ...
def getIndex(self) -> Incomplete: ...
def getLPSol(self) -> Incomplete: ...
def getLbGlobal(self) -> Incomplete: ...
def getLbLocal(self) -> Incomplete: ...
def getLbOriginal(self) -> Incomplete: ...
def getObj(self) -> Incomplete: ...
def getUbGlobal(self) -> Incomplete: ...
def getUbLocal(self) -> Incomplete: ...
def getUbOriginal(self) -> Incomplete: ...
def isInLP(self) -> Incomplete: ...
def varMayRound(self, direction: Incomplete = ...) -> Incomplete: ...
def vtype(self) -> Incomplete: ...
@disjoint_base
class Model:
_freescip: Incomplete
data: Incomplete
def __init__(
self,
problemName: Incomplete = ...,
defaultPlugins: Incomplete = ...,
sourceModel: Incomplete = ...,
origcopy: Incomplete = ...,
globalcopy: Incomplete = ...,
enablepricing: Incomplete = ...,
createscip: Incomplete = ...,
threadsafe: Incomplete = ...,
) -> None: ...
def _createConsGenNonlinear(self, cons: Incomplete) -> Incomplete: ...
def _createConsLinear(self, lincons: Incomplete) -> Incomplete: ...
def _createConsNonlinear(self, cons: Incomplete) -> Incomplete: ...
def _createConsQuadratic(self, quadcons: Incomplete) -> Incomplete: ...
def _getStageNames(self) -> Incomplete: ...
def activateBenders(
self, benders: Incomplete, nsubproblems: Incomplete
) -> Incomplete: ...
def addBendersSubproblem(
self, benders: Incomplete, subproblem: Incomplete
) -> Incomplete: ...
def addCoefKnapsack(
self, cons: Incomplete, var: Incomplete, weight: Incomplete
) -> Incomplete: ...
def addCoefLinear(
self, cons: Incomplete, var: Incomplete, value: Incomplete
) -> Incomplete: ...
def addCons(
self,
cons: Incomplete,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
modifiable: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addConsAnd(
self,
vars: Incomplete,
resvar: Incomplete,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
modifiable: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addConsCardinality(
self,
consvars: Incomplete,
cardval: Incomplete,
indvars: Incomplete = ...,
weights: Incomplete = ...,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addConsCoeff(
self, cons: Incomplete, var: Incomplete, coeff: Incomplete
) -> Incomplete: ...
def addConsDisjunction(
self,
conss: Incomplete,
name: Incomplete = ...,
initial: Incomplete = ...,
relaxcons: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
local: Incomplete = ...,
modifiable: Incomplete = ...,
dynamic: Incomplete = ...,
) -> Incomplete: ...
def addConsElemDisjunction(
self, disj_cons: Incomplete, cons: Incomplete
) -> Incomplete: ...
def addConsIndicator(
self,
cons: Incomplete,
binvar: Incomplete = ...,
activeone: Incomplete = ...,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addConsKnapsack(
self,
vars: Incomplete,
weights: Incomplete,
capacity: Incomplete,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
modifiable: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addConsLocal(
self,
cons: Incomplete,
validnode: Incomplete = ...,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addConsNode(
self,
node: Incomplete,
cons: Incomplete,
validnode: Incomplete = ...,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addConsOr(
self,
vars: Incomplete,
resvar: Incomplete,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
modifiable: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addConsSOS1(
self,
vars: Incomplete,
weights: Incomplete = ...,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addConsSOS2(
self,
vars: Incomplete,
weights: Incomplete = ...,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addConsXor(
self,
vars: Incomplete,
rhsvar: Incomplete,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
modifiable: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addConss(
self,
conss: Incomplete,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
modifiable: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addCut(self, cut: Incomplete, forcecut: Incomplete = ...) -> Incomplete: ...
def addExprNonlinear(
self, cons: Incomplete, expr: Incomplete, coef: Incomplete
) -> Incomplete: ...
def addMatrixCons(
self,
cons: Incomplete,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
modifiable: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addMatrixConsIndicator(
self,
cons: Incomplete,
binvar: Incomplete = ...,
activeone: Incomplete = ...,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def addMatrixVar(
self,
shape: Incomplete,
name: Incomplete = ...,
vtype: Incomplete = ...,
lb: Incomplete = ...,
ub: Incomplete = ...,
obj: Incomplete = ...,
pricedVar: Incomplete = ...,
pricedVarScore: Incomplete = ...,
) -> Incomplete: ...
def addObjoffset(
self, offset: Incomplete, solutions: Incomplete = ...
) -> Incomplete: ...
def addPoolCut(self, row: Incomplete) -> Incomplete: ...
def addPyCons(self, cons: Incomplete) -> Incomplete: ...
def addRowDive(self, row: Incomplete) -> Incomplete: ...
def addRowExact(self, rowexact: Incomplete) -> Incomplete: ...
def addSol(self, solution: Incomplete, free: Incomplete = ...) -> Incomplete: ...
def addVar(
self,
name: Incomplete = ...,
vtype: Incomplete = ...,
lb: Incomplete = ...,
ub: Incomplete = ...,
obj: Incomplete = ...,
pricedVar: Incomplete = ...,
pricedVarScore: Incomplete = ...,
deletable: Incomplete = ...,
) -> Incomplete: ...
def addVarLocks(
self, var: Incomplete, nlocksdown: Incomplete, nlocksup: Incomplete
) -> Incomplete: ...
def addVarLocksType(
self,
var: Incomplete,
locktype: Incomplete,
nlocksdown: Incomplete,
nlocksup: Incomplete,
) -> Incomplete: ...
def addVarSOS1(
self, cons: Incomplete, var: Incomplete, weight: Incomplete
) -> Incomplete: ...
def addVarSOS2(
self, cons: Incomplete, var: Incomplete, weight: Incomplete
) -> Incomplete: ...
def addVarToRow(
self, row: Incomplete, var: Incomplete, value: Incomplete
) -> Incomplete: ...
def adjustedVarLb(self, var: Variable, lb: float) -> float: ...
def adjustedVarUb(self, var: Variable, ub: float) -> float: ...
def aggregateVars(
self,
varx: Variable,
vary: Variable,
coefx: float = ...,
coefy: float = ...,
rhs: float = ...,
) -> tuple[bool, bool, bool]: ...
def allColsInLP(self) -> Incomplete: ...
def allowNegSlackExact(self) -> Incomplete: ...
def appendVarSOS1(self, cons: Incomplete, var: Incomplete) -> Incomplete: ...
def appendVarSOS2(self, cons: Incomplete, var: Incomplete) -> Incomplete: ...
def applyCutsProbing(self) -> Incomplete: ...
def attachEventHandlerCallback(
self,
callback: Incomplete,
events: Incomplete,
name: Incomplete = ...,
description: Incomplete = ...,
) -> Incomplete: ...
def backtrackProbing(self, probingdepth: Incomplete) -> Incomplete: ...
def branchLPExact(self) -> Incomplete: ...
def branchVar(self, variable: Incomplete) -> Incomplete: ...
def branchVarVal(self, variable: Incomplete, value: Incomplete) -> Incomplete: ...
def cacheRowExtensions(self, row: Incomplete) -> Incomplete: ...
def calcChildEstimate(
self, variable: Incomplete, targetvalue: Incomplete
) -> Incomplete: ...
def calcNodeselPriority(
self, variable: Incomplete, branchdir: Incomplete, targetvalue: Incomplete
) -> Incomplete: ...
def catchEvent(
self, eventtype: Incomplete, eventhdlr: Incomplete
) -> Incomplete: ...
def catchRowEvent(
self, row: Incomplete, eventtype: Incomplete, eventhdlr: Incomplete
) -> Incomplete: ...
def catchVarEvent(
self, var: Incomplete, eventtype: Incomplete, eventhdlr: Incomplete
) -> Incomplete: ...
def checkBendersSubproblemOptimality(
self, solution: Incomplete, probnumber: Incomplete, benders: Incomplete = ...
) -> Incomplete: ...
def checkQuadraticNonlinear(self, cons: Incomplete) -> Incomplete: ...
def checkSol(
self,
solution: Incomplete,
printreason: Incomplete = ...,
completely: Incomplete = ...,
checkbounds: Incomplete = ...,
checkintegrality: Incomplete = ...,
checklprows: Incomplete = ...,
original: Incomplete = ...,
) -> Incomplete: ...
def chgCapacityKnapsack(
self, cons: Incomplete, capacity: Incomplete
) -> Incomplete: ...
def chgCoefLinear(
self, cons: Incomplete, var: Incomplete, value: Incomplete
) -> Incomplete: ...
def chgLhs(self, cons: Incomplete, lhs: Incomplete) -> Incomplete: ...
def chgReoptObjective(
self, coeffs: Incomplete, sense: Incomplete = ...
) -> Incomplete: ...
def chgRhs(self, cons: Incomplete, rhs: Incomplete) -> Incomplete: ...
def chgRowLhsDive(self, row: Incomplete, newlhs: Incomplete) -> Incomplete: ...
def chgRowRhsDive(self, row: Incomplete, newrhs: Incomplete) -> Incomplete: ...
def chgVarBranchPriority(
self, var: Incomplete, priority: Incomplete
) -> Incomplete: ...
def chgVarLb(self, var: Incomplete, lb: Incomplete) -> Incomplete: ...
def chgVarLbDive(self, var: Incomplete, newbound: Incomplete) -> Incomplete: ...
def chgVarLbGlobal(self, var: Incomplete, lb: Incomplete) -> Incomplete: ...
def chgVarLbNode(
self, node: Incomplete, var: Incomplete, lb: Incomplete
) -> Incomplete: ...
def chgVarLbProbing(self, var: Incomplete, lb: Incomplete) -> Incomplete: ...
def chgVarObjDive(self, var: Incomplete, newobj: Incomplete) -> Incomplete: ...
def chgVarObjProbing(self, var: Incomplete, newobj: Incomplete) -> Incomplete: ...
def chgVarType(self, var: Incomplete, vtype: Incomplete) -> Incomplete: ...
def chgVarUb(self, var: Incomplete, ub: Incomplete) -> Incomplete: ...
def chgVarUbDive(self, var: Incomplete, newbound: Incomplete) -> Incomplete: ...
def chgVarUbGlobal(self, var: Incomplete, ub: Incomplete) -> Incomplete: ...
def chgVarUbNode(
self, node: Incomplete, var: Incomplete, ub: Incomplete
) -> Incomplete: ...
def chgVarUbProbing(self, var: Incomplete, ub: Incomplete) -> Incomplete: ...
def computeBestSolSubproblems(self) -> Incomplete: ...
def constructLP(self) -> Incomplete: ...
def copyLargeNeighborhoodSearch(
self, to_fix: Incomplete, fix_vals: Incomplete
) -> Incomplete: ...
def count(self) -> Incomplete: ...
def createChild(
self, nodeselprio: Incomplete, estimate: Incomplete
) -> Incomplete: ...
def createCons(
self,
conshdlr: Incomplete,
name: Incomplete,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
modifiable: Incomplete = ...,
dynamic: Incomplete = ...,
removable: Incomplete = ...,
stickingatnode: Incomplete = ...,
) -> Incomplete: ...
def createConsFromExpr(
self,
cons: Incomplete,
name: Incomplete = ...,
initial: Incomplete = ...,
separate: Incomplete = ...,
enforce: Incomplete = ...,
check: Incomplete = ...,
propagate: Incomplete = ...,
local: Incomplete = ...,
modifiable: Incomplete = ...,
dynamic: Incomplete = ...,