cuikworldforces.c File Reference

Detailed Description

dot_inline_dotgraph_70.png

This application extracts forces from a set of solution boxes.

Definition in file cuikworldforces.c.

Functions

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

Function Documentation

int main ( int  argc,
char **  arg 
)

Main body of the cuikworldforces application.

Use:

  • cuikworldforces world_name.world solutions_name.sol [num force [mode]]

Where:

  • world_name: File describing the problem.
  • solutions_name: Is the solution set for which to extract the forces.
  • num_force: Optional. Use when only the force on one element is required. In this case the ouput file is a cost file and the force is scaled to [0,1]. Used for plotting.
  • mode: Optional and only if num_force is given. Exponential used when scaling the values to the [0,1] range. If possitive differences in values close to 1 are increased. If negative the differences in the lower levels are increased. The default value is 1 (no deformation is applied).

File extensions are optional.

Parameters
argcNumber of elements in the command line that starts the application (i.e., the cuikanimate 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 cuikworldforces.c.

References COST_EXT, CreateFileName(), DeleteBox(), DeleteFileName(), DeleteParameters(), DeleteWorld(), Error(), FALSE, FORCES_EXT, GetBoxInterval(), GetBoxNIntervals(), GetFileFullName(), InitParametersFromFile(), InitWorldFromFile(), IntervalCenter(), NEW, PARAM_EXT, ReadBox(), SaveVector(), SOL_EXT, TRUE, Vector2Range(), and WorldForceVarsIndices().