Skip to content

Relax valmax return type - #20

Open
AmziJeffs wants to merge 1 commit into
michaelhodel:mainfrom
AmziJeffs:fix-valmax-typing
Open

Relax valmax return type#20
AmziJeffs wants to merge 1 commit into
michaelhodel:mainfrom
AmziJeffs:fix-valmax-typing

Conversation

@AmziJeffs

Copy link
Copy Markdown
Contributor

In some solvers, valmax is used with a function that does not return integers. For example, solve_c8cbb738 has the line x3 = valmax(x2, shape). Here, valmax is used to find the (lexicographically) largest tuple among all shapes of some objects. As such it would be more accurate to designate the return type of valmax as a Numerical. This seems to be the strictest relaxation that is compatible with the solvers as currently written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant