wangjie212 / TSSOS

A sparse polynomial optimization tool based on the moment-SOS hierarchy.
MIT License
39 stars 14 forks source link

Inexact Error #8

Open richardrl opened 1 year ago

richardrl commented 1 year ago

I think lines like this: https://github.com/wangjie212/TSSOS/blob/10f935ddef96fc4680246dbb238dde87b88789b9/src/blockpop_uncons.jl#L65

Instead of converting with Int, you should call the ceiling function. Int does not convert non-integer floats to integer, but rather errors with Inexact error