working on linear constraint for ocean