Research Article

A Quasiphysical and Dynamic Adjustment Approach for Packing the Orthogonal Unequal Rectangles in a Circle with a Mass Balance: Satellite Payload Packing

Algorithm 1

Definite , , , , , , , , , , , , and initialize , , , , , , , ;
Do
{
 Randomly generate with the envelope radius and calculate ; ;
 If
  Continue;
 Else break;
 While (1)
 {   Do
  {  ; for , calculate of and ;
    Calculate and ;
    If ( and )
    Else if
      Else if   ; break;}
  } While <  1 and );
  If ( or ) break;
  If find and which satisfy Formula (17) in and , , ;
  Find so that ;
  If () {by rotating , is obtained;
       If () update   by moving (), ;}
  Else find so that , and update   by rotating ;
  If (), update by moving () out, ;
 }
} while ();
Calculate the mass center , and , and calculate ;
Output the layout scheme and envelope radius ;
End the algorithm.