working on solve-rp-constraints