-
Notifications
You must be signed in to change notification settings - Fork 63
Objective function is unbounded in optimize #21
Comments
Hi, I've looked at your EVFL and it contains several conflicting constraints. The first two lines are fine, but line 3 and 4 contain conflicting relationships. Conflict 1:
Conflict 2:
As for a fix, here are two solutions that would fix the problem (they are identical but use different syntaxes)
Or even shorter:
That being said... I've seen situations where the order of the constraints can cause problems. Sometimes re-ordering the constraints fixes the problem. This lies in the underlying cassowary/kiwi constraint solver algorithm. Hope that helps! |
Hi, I already tried different variations including the mentioned above, all gave same error. Thanks for the hints though, they are extremely useful and precise. |
Alright, well glad that was helpful and that you can at least workaround the issue. |
I have currently passed by a weird bug in VFL and I think that it is not just something that I am doing wrong. The issue appears when I try to maintain aspect ratio of a subview and it gives me this error :
"Objective function is unbounded in optimize"
using vfl below :
Applied to these 2 snippets :
Snippet 1: Throws an error
Snippet 2: Works fine, no error
I dont know if you use common libraries as with react-gss but they have same issue as well.
petehunt/react-gss#5
Thanks in advance
The text was updated successfully, but these errors were encountered: