Skip to content

Commit 395b3cc

Browse files
a few fixes in arums
1 parent cda6feb commit 395b3cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/arums_RUSC.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Gbarx.RUSC <- function (arums, Ubarx, mubarx, x)
130130
#
131131
result = genericLP(obj=obj,A=A,modelsense="min",rhs=rhs,sense="=",Q=Q,lb=lb,ub=ub)
132132
#
133-
mux = result$solution[1:nbAlt-1]
133+
mux = result$solution[1:(nbAlt-1)]
134134
Amu = c(arums$aux_A[x,,] %*% matrix(mux,ncol=1))
135135
Ux = Amu + arums$aux_b[x,]
136136
#

R/arums_empirical.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ Gbarx.empirical <- function(arums, Ubarx, mubarx, x)
159159
valx = sum(mubarx*Ubarx) - result$objval
160160
#
161161
ret = list(valx=valx,
162-
Ux=Uoptx,
163-
mux=mux)
162+
mux=mux,
163+
Ux=Uoptx)
164164
#
165165
return(ret)
166166
}

0 commit comments

Comments
 (0)