A Unified Approach For Analysis Of Cable And Tensegrity Structures Using Memoryless Quasi-Newton Minimization Of Total Potential Energy