ERROR: LoadError: MethodError: no method matching isless(::String, ::Int64)

Send me please your opinion related to the error I received.
Thanks!

ERROR: LoadError: MethodError: no method matching isless(::String, ::Int64)
Closest candidates are:
  isless(::Missing, ::Any) at missing.jl:87
  isless(::AbstractFloat, ::Real) at operators.jl:158
  isless(::ForwardDiff.Dual{Tx,V,N} where N where V, ::Integer) where Tx at C:\Users\mmill\.julia\packages\ForwardDiff\sdToQ\src\dual.jl:139
  ...
Stacktrace:
 [1] <(::String, ::Int64) at .\operators.jl:268
 [2] <=(::String, ::Int64) at .\operators.jl:317
 [3] macro expansion at C:\Users\mmill\.julia\packages\MutableArithmetics\NuiNA\src\rewrite.jl:227 [inlined]
 [4] top-level scope at C:\Users\mmill\.julia\packages\JuMP\YXK4e\src\macros.jl:800
in expression starting at C:\Users\mmill\AppData\Local\JuliaPro-1.0.5-2\problem3.jl:230```
1 Like

You tried to compare a string to an integer and found that there is no such ordering defined.

In my opinion, it is a rather fine error.

7 Likes

Thank you Tamas!

Since your last two questions have been about MethodErrors, here is the documentation: Methods · The Julia Language

2 Likes