/* g e t O b j V a l  */
real_t QProblem_getObjVal(QProblem *_THIS)
/* g e t O b j V a l  */
real_t QProblem_getObjVal(QProblem *_THIS)
{
	real_t objVal;
	if ( ( QProblem_getStatus( _THIS ) == QPS_AUXILIARYQPSOLVED ) ||
		 ( QProblem_getStatus( _THIS ) == QPS_HOMOTOPYQPSOLVED )  ||
		 ( QProblem_getStatus( _THIS ) == QPS_SOLVED ) )
	{
		objVal = QProblem_getObjValX( _THIS,_THIS->x );
	}
	else
	{
		objVal = QPOASES_INFTY;
	}
	return objVal;
}