/* a r e B o u n d s C o n s i s t e n t  */
returnValue QProblem_areBoundsConsistent(QProblem *_THIS, const real_t *const lb_new, const real_t *const ub_new, const real_t *const lbA_new, const real_t *const ubA_new)
/* a r e B o u n d s C o n s i s t e n t  */
returnValue QProblem_areBoundsConsistent(QProblem *_THIS, const real_t *const lb_new, const real_t *const ub_new, const real_t *const lbA_new, const real_t *const ubA_new)
{
	int i;
	if (lb_new && ub_new) {
		for (i = 0; i < QProblem_getNV(_THIS); ++i) {
			if (lb_new[i] > ub_new[i]+QPOASES_EPS) {
				return RET_QP_INFEASIBLE;
			}
		}
	}
	if (lbA_new && ubA_new) {
		for (i = 0; i < QProblem_getNC(_THIS); ++i) {
			if (lbA_new[i] > ubA_new[i]+QPOASES_EPS) {
				return RET_QP_INFEASIBLE;
			}
		}
	}
	return SUCCESSFUL_RETURN;
}