Forum Discussion

FICO's avatar
FICO
Community Manager
4 years ago

different outputs using XPRSgetbasis and XPRSwritesol

Hi everyone,

While working on sensitivity analysis, I found that XPRSwritesol and XPRSgetbasis return different basis status values for non-basis rows.

For instance, let's assume the following lp

\Problem name: test                                                            
\FICO Xpress v8.14.2, Community, written 15:12:58, Nov 8, 2022
 
Minimize
 - C1 - C2
 
Subject To
R1: C1 <= 1 
R2: C2 <= 1 
R3: C1 + 0.5 C2 <= 1 
R4: - 0.4 C1 - C2 >= -1 
 
Bounds
 
End

XPRSwritesol gives me :

     1,"R1      ","L","BS",0.625,0.375,-1e+09,1,0,1
     2,"R2      ","L","BS",0.75,0.25,-1e+09,1,0,1
     3,"R3      ","L","UL",1,0,-1e+09,1,-0.75,1
     4,"R4      ","G","LL",-1,0,-1,1e+09,0.625,-1
     5,"C1      ","C","BS",0.625,-1,0,1e+09,0
     6,"C2      ","C","BS",0.75,-1,0,1e+09,0

While callinf XPRSgetbasis I get :

row status
	R1 1 (slack, surplus or artificial is basic.)
	R2 1 (slack, surplus or artificial is basic.)
	R3 0 (slack, surplus or artificial is non-basic at lower bound.)
	R4 2 (slack or surplus is non-basic at upper bound.)
col status
	C1 1 (variable is basic.)
	C2 1 (variable is basic.)

(same results with xpress 8.13.3, 8.14.0 and 8.14.2, OS : debian 11)

Do I miss something while interpretating theses results ?

Thanks

No RepliesBe the first to reply