-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for function incur in constraint functions #188
Comments
Like the following feature:
' |
Can you provide a full example that includes the definition of data fields? |
Hi @hanfeng0114,
The core issue is that the right-hand side of the equation produces a floating-point result and PyVSC doesn't currently handle this. I receive proper results if I explicitly convert the right-hand side to an integer:
I recommend using explicit conversion for now. In the future, I will either improve the error messaging or provide direct support for using floating-point expressions in integer constraint expressions. |
- (#188) - Automatically convert floating-point numbers used in constraints to integers Signed-off-by: Matthew Ballance <[email protected]>
The 0.8.4 release contains changes to automatically convert floating-point number used in constraints to integers. I believe this is the best way to address this issue. |
Does pyvsc support function invoking in constraint function?
The text was updated successfully, but these errors were encountered: