check result of fopen()
use SCIPaddVarObj instead of SCIPvarGetObj and SCIPchgVarObj