File tree Expand file tree Collapse file tree 3 files changed +9
-18
lines changed Expand file tree Collapse file tree 3 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -592,8 +592,8 @@ SCIP_RETCODE transformAndSolve(
592
592
593
593
SCIP_Real newbnd ;
594
594
595
- assert (!swaprow1 || ( swaprow1 && !SCIPisInfinity (scip , SCIPmatrixGetRowRhs (matrix , row1idx ) )));
596
- assert (!swaprow2 || ( swaprow2 && !SCIPisInfinity (scip , SCIPmatrixGetRowRhs (matrix , row2idx ) )));
595
+ assert (!swaprow1 || !SCIPisInfinity (scip , SCIPmatrixGetRowRhs (matrix , row1idx )));
596
+ assert (!swaprow2 || !SCIPisInfinity (scip , SCIPmatrixGetRowRhs (matrix , row2idx )));
597
597
598
598
row1len = SCIPmatrixGetRowNNonzs (matrix , row1idx );
599
599
row2len = SCIPmatrixGetRowNNonzs (matrix , row2idx );
Original file line number Diff line number Diff line change @@ -824,21 +824,10 @@ int compareVarsSignedPerm(
824
824
assert (var1 != NULL );
825
825
assert (var2 != NULL );
826
826
827
- /* use SCIP's comparison functions if available */
828
- if ( scip == NULL )
829
- {
830
- if ( SCIPvarGetType (var1 ) < SCIPvarGetType (var2 ) )
831
- return -1 ;
832
- if ( SCIPvarGetType (var1 ) > SCIPvarGetType (var2 ) )
833
- return 1 ;
834
- }
835
- else
836
- {
837
- if ( SCIPvarGetType (var1 ) < SCIPvarGetType (var2 ) )
838
- return -1 ;
839
- if ( SCIPvarGetType (var1 ) > SCIPvarGetType (var2 ) )
840
- return 1 ;
841
- }
827
+ if ( SCIPvarGetType (var1 ) < SCIPvarGetType (var2 ) )
828
+ return -1 ;
829
+ if ( SCIPvarGetType (var1 ) > SCIPvarGetType (var2 ) )
830
+ return 1 ;
842
831
843
832
obj1 = isneg1 ? - SCIPvarGetObj (var1 ) : SCIPvarGetObj (var1 );
844
833
obj2 = isneg2 ? - SCIPvarGetObj (var2 ) : SCIPvarGetObj (var2 );
Original file line number Diff line number Diff line change @@ -6407,6 +6407,7 @@ SCIP_RETCODE treeCreateProbingNode(
6407
6407
6408
6408
/* get the current node */
6409
6409
currentnode = SCIPtreeGetCurrentNode (tree );
6410
+ assert (currentnode != NULL );
6410
6411
assert (SCIPnodeGetType (currentnode ) == SCIP_NODETYPE_FOCUSNODE
6411
6412
|| SCIPnodeGetType (currentnode ) == SCIP_NODETYPE_REFOCUSNODE
6412
6413
|| SCIPnodeGetType (currentnode ) == SCIP_NODETYPE_PROBINGNODE );
@@ -6720,8 +6721,9 @@ SCIP_RETCODE SCIPtreeMarkProbingNodeHasLP(
6720
6721
6721
6722
/* get current probing node */
6722
6723
node = SCIPtreeGetCurrentNode (tree );
6724
+ assert (node != NULL );
6723
6725
assert (SCIPnodeGetType (node ) == SCIP_NODETYPE_PROBINGNODE );
6724
- assert (node != NULL && node -> data .probingnode != NULL );
6726
+ assert (node -> data .probingnode != NULL );
6725
6727
6726
6728
/* update LP information in probingnode data */
6727
6729
/* cppcheck-suppress nullPointer */
You can’t perform that action at this time.
0 commit comments