Skip to content

Commit

Permalink
update for julia 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jey committed Dec 25, 2016
1 parent 8422c2a commit 9dff14f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Lbfgsb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,22 +118,22 @@ function lbfgsb(ogFunc!::Function,

while true

if task[1] == 'F'
if task[1] == UInt32('F')
f[1] = convert( Float64, ogFunc!(x,g) );
c += 1;

elseif task[1] == 'N'
elseif task[1] == UInt32('N')
t += 1;
if t >= maxiter # exceed maximum number of iteration
@callLBFGS "STOP"
break;
end
elseif task[1] == 'C' # convergence
elseif task[1] == UInt32('C') # convergence
break;
elseif task[1] == 'A'
elseif task[1] == UInt32('A')
status = "abnormal";
break;
elseif task[1] == 'E'
elseif task[1] == UInt32('E')
status = "error";
break;
end
Expand Down

0 comments on commit 9dff14f

Please sign in to comment.