Skip to content

Commit 617be61

Browse files
committed
bugfix rcs
1 parent aa1b008 commit 617be61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/rcsTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function rcsAllocationSimplex!(y, u, My; maxIter=30)
297297
iBase = Integer.(n+1:n+m) # [m x 1] Global indices (i.e., within the vector Y) of thrusters in the basis. Initial solution is y = s
298298
Yn = zeros(n + m) # [n+m x 1] Thrusters out of the basis, either at zero (Yn[i] = 0) or at max (Yn[i] = Ymax[i])
299299
yb = abs.(u) # [m x 1] Basis vector (i.e., y of the m thrusters that form the basis)
300-
Ymax = [ones(n); (maximum(yb) + 1.0)*ones(m)] # [n+m x 1] Parameters upper bounds, 0 <= Y <= Ymax, where Y = [y; s]
300+
Ymax = [ones(n); 1e3*maximum(yb)*ones(m)] # [n+m x 1] Parameters upper bounds, 0 <= Y <= Ymax, where Y = [y; s] TODO: Caution, this was creating problems when it was (maximum(yb) + 1.0)
301301
eNew = zeros(n)
302302

303303
# Loop until all gradient components are positive

0 commit comments

Comments
 (0)