@@ -463,6 +463,10 @@ set(instances_Or
463
463
"instances/Or/problem.cip\; 0"
464
464
)
465
465
466
+ set (instances_Objlim
467
+ "instances/Issue/3715.cip\; 0\; default\; 0.01"
468
+ )
469
+
466
470
#
467
471
# Pairs of instances and settings
468
472
#
@@ -536,6 +540,14 @@ macro(split_decompinstance instance)
536
540
get_filename_component (basename ${instpath} NAME )
537
541
endmacro (split_decompinstance )
538
542
543
+ macro (split_objliminstance instance )
544
+ list (GET instance 0 path )
545
+ list (GET instance 1 optval )
546
+ list (GET instance 2 setting )
547
+ list (GET instance 3 objlim )
548
+ get_filename_component (basename ${path} NAME )
549
+ endmacro (split_objliminstance )
550
+
539
551
macro (split_pair pair )
540
552
list (GET pair 0 path )
541
553
list (GET pair 1 optval )
@@ -695,6 +707,26 @@ foreach(instance ${instances_Indicator})
695
707
)
696
708
endforeach (instance )
697
709
710
+ #
711
+ # test checking objectivelimits
712
+ #
713
+ foreach (instance ${instances_Objlim} )
714
+ split_objliminstance (instance )
715
+ #
716
+ # configure the batch file for this test by substituting placeholders in the in.file
717
+ #
718
+ configure_file (interactiveshell/objectivelimit.bat.in interactiveshell/objectivelimit-${basename}.bat )
719
+ add_test (NAME Objlim-${setting}-${basename}
720
+ COMMAND $< TARGET_FILE:scip> -b ${PROJECT_BINARY_DIR} /check/interactiveshell/objectivelimit-${basename}.bat
721
+ )
722
+ set_tests_properties (Objlim-${setting}-${basename}
723
+ PROPERTIES
724
+ PASS_REGULAR_EXPRESSION "Validation : Success"
725
+ FAIL_REGULAR_EXPRESSION ERROR
726
+ DEPENDS scip-build
727
+ )
728
+ endforeach (instance )
729
+
698
730
#
699
731
# the following instances are not pure binary and hence cannot be written out in opb format
700
732
#
0 commit comments