Originally posted by: Mark Towers
CPXPARAM_Read_DataCheck 1
CPXPARAM_OptimalityTarget 3
Warning: Value CPX_OPTIMALITYTARGET_OPTIMALGLOBAL for CPXPARAM_OptimalityTarget is only available for QP and MIQP.
CPLEX Error 5002: 'q1' is not convex.
Presolve time = 0.00 sec. (0.01 ticks)
Root node processing (before b&c):
Real time = 0.01 sec. (0.01 ticks)
Parallel b&c, 4 threads:
Real time = 0.00 sec. (0.00 ticks)
Sync time (average) = 0.00 sec.
Wait time (average) = 0.00 sec.
------------
Total (root+branch&cut) = 0.01 sec. (0.01 ticks)
Error: Model is non-convex
CPLEX Error 1217: No solution exists.
CPLEX Error 1217: No solution exists.
So I know that the problem does have a solution because I have programmed the same model in the cp version of cplex.
Looking at the Q1 constraint, it is (constant / variable) + (constant / variable) <= constant
However due to mp not liking division by variable, the equation is reformatted to constant * variable + constant * variable <= constant * variable * variable
Mark
#CPLEXOptimizers#DecisionOptimization