Originally posted by: amulya_yadav
Hi,
I am building a model in CPLEX 12.7.1 and my model has constraints of the form z=x*y where z,x,y are all binary variables.
I tried to use Benders decomposition to decompose my problem into a master problem and sub-problem. I want to keep my x and y variables in the master problem, and the z variable in the sub-problem. Now, I can set my z variable to be a float variable if both x and y are integral.
This is the code that I wrote to annotate my model:
IloCplex.LongAnnotation benders =
cplex.newLongAnnotation("cpxBendersPartition");
cplex.setAnnotation(benders, x, 0);
cplex.setAnnotation(benders, y, 0);
cplex.setAnnotation(benders, z, 1);
However, when I run this piece of code (after specifying my model), I get this error:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000011e0e22ca, pid=1324, tid=0x0000000000001c03
#
# JRE version: Java(TM) SE Runtime Environment (8.0_112-b16) (build 1.8.0_112-b16)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.112-b16 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libcplex1271remotejni.jnilib+0xf62ca] _38538ad882a4e3819e56642938452df9+0x43a
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/amulyayadav/Documents/gurobi/MIO-Interpretable/hs_err_pid1324.log
Surprisingly, this error goes away after I put z in the master problem. Does anyone have any idea of how to fix this?
I have attached the error report file.
#CPLEXOptimizers#DecisionOptimization