Hi Peyman,
I'm not sure where the solution file but it does not correspond to your problem file. Your model is infeasible, that's why you cannot access a solution. So you should always check the status of the optimization before accessing the X attribute.
If you want to know one reason why your model is infeasible you can use the IIS feature, e.g., see
http://www.gurobi.com/documentation/7.5/refman/py_model_computeiis.html.
In your case the IIS is:
Minimize
- 94949.461 Constant
Subject To
CON2: PHVAC_flex_198 - PHVAC_up__198 - PHVAC_down__198 = 0
CON3: PHVAC_down__198 = 0
CON4: PHVAC_up__198 = 19.66388916666667
R4351: 3.14 PHVAC_flex_198 + Tdc_i_198 = 22.90832917405333
Bounds
PHVAC_flex_198 free
PHVAC_up__198 free
PHVAC_down__198 free
Constant = 1
End
which simplified reads as
"
61.74461198333 + Tdc_i_198 = 22.90832917405333" but since your variable "Tdc_i_198" is non-negative this is infeasible.
Best, Michael