Originally posted by: BoJensen
Reading in your problem and displaying problem stats, I get :
CPLEX> display prob stat
Problem name : prob.lp
Objective sense : Maximize
Variables : 53 [Box: 53]
Objective nonzeros : 18
Linear constraints : 63 [Equal: 63]
Nonzeros : 188
RHS nonzeros : 0
Notice you have equality constraints in the model i.e of type ==, duals for equality constraints can be of any sign i.e both negative or positive.
Regarding :
"and the most weirdest part is line 92, which showes the variable is "BASE variable" but with positive reduced cost.
<variable name="Y_n_s3" index="5" status="UL" value="1" reducedCost="21.5555555555556"/>"
Then you seem to be confused about what a basic solution is. This variable is on upper bound and has a positive reduced cost, which is dual feasible since the problem at hand is a maximization problem.
I have to correct myself, since loading the solution and printing the solution quality in the interactive is not possible, one has to call the optimizer first for CPLEX to recognize the solution. Sorry about that.
#CPLEXOptimizers#DecisionOptimization