79094303

Date: 2024-10-16 13:39:16
Score: 4
Natty:
Report link

I am new with gekko, but I think the usage of m.if2 might be wrong. 'm.if2(m.abs(v)<=1e-4, u,xs_)' should be written as 'm.if2(m.abs(v)-1e-4, u,xs_)', it means if 'm.abs(v)-1e-4' is less than 0, the value is u, or else it is xs_.

Reasons:
  • RegEx Blacklisted phrase (1.5): I am new
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: fatsen