/* g e t W o r k i n g S e t C o n s t r a i n t s  */
returnValue QProblem_getWorkingSetConstraints(QProblem *_THIS, real_t *workingSetC)
/* g e t W o r k i n g S e t C o n s t r a i n t s  */
returnValue QProblem_getWorkingSetConstraints(QProblem *_THIS, real_t *workingSetC)
{
	int i;
	int nC = QProblem_getNC( _THIS );
	if ( workingSetC == 0 )
		return THROWERROR( RET_INVALID_ARGUMENTS );
	for ( i=0; i<nC; ++i )
	{
		switch ( Constraints_getStatus( &(_THIS->constraints),i ) )
		{
			case ST_LOWER: workingSetC[i] = -1.0; break;
			case ST_UPPER: workingSetC[i] = +1.0; break;
			default:       workingSetC[i] =  0.0; break;
		}
	}
	return SUCCESSFUL_RETURN;
}