cuikminimize.c File Reference

Detailed Description

dot_inline_dotgraph_21.png

Gradient-based minimization of the potential energy of a conformation.

This only works for tensegrity structures. Other structures do not have potential energy.

Definition in file cuikminimize.c.

Functions

int main (int argc, char **arg)
 Main body of the cuikminimize application. More...
 

Function Documentation

int main ( int  argc,
char **  arg 
)

Main body of the cuikminimize application.

Use:

  • cuikminimize problem_name.tens [max_iterations]

where

  • problem_name.tens contains the tensegrity description.
  • max_iterations is the optional maximum number of iterations. The default is 1000.

The .tens extension is optional

Parameters
argcNumber of elements in the command line that starts the application (i.e., the cuikminimize command itself and its arguments).
argStrings with the arguments.
Returns
EXIT_SUCCESS (0) if the execution worked out fine and EXIT_FAILURE if not.

Definition at line 63 of file cuikminimize.c.

References ATLAS_EXT, CreateFileName(), CS_WD_FROM_WORLD, CS_WD_GET_NUM_SYSTEM_VARS, DeleteAtlas(), DeleteFileName(), DeleteParameters(), DeleteWorld(), Error(), GetFileFullName(), InitParametersFromFile(), InitTensegrityFromFile(), MinimizeOnAtlas(), PARAM_EXT, ReadOneSample(), SaveAtlas(), WorldForceField(), and WorldPotentialEnergy().