cuikcost.c File Reference

Detailed Description

dot_inline_dotgraph_19.png

A tool compute the cost of a given set of configurations. In the world files the cost is defined using the "avoid limit" clause. In the cuik files it can be defined as an arbitrary equation invoving the problem variables.

This program gets a solution file, computes the cost for all solutions and generates a cost file that can be latter used to visualize the configuration spaces (using for instance cuikplotatlas).

Definition in file cuikcost.c.

Functions

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

Function Documentation

int main ( int  argc,
char **  arg 
)

Main body of the cuikcost application.

A tool compute the cost of a given set of configurations. In the world files the cost is defined using the "avoid limit" clause. In the cuik files it can be defined as an arbitrary equation invoving the problem variables.

This program gets a solution file, computes the cost for all solutions and generates a cost file that can be latter used to visualize the configuration spaces (using for instance cuikplotatlas).

Use:

  • cuikcost problem_name sol_name

where

  • problem_name is the file with the molecuar information (typically a pdb).
  • sol_name file with the points to evaluate in the form of solutions (boxes). This file name is used (with the cost extension) to produce the output.

The file extensions are not required.

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

References Advance(), COST_EXT, CreateFileName(), CS_WD_COST, CS_WD_DELETE, CS_WD_INIT, DeleteFileName(), DeleteListOfBoxes(), DeleteParameters(), EndOfList(), Error(), FALSE, First(), GetBoxCenter(), GetBoxNIntervals(), GetCurrent(), GetFileFullName(), InitIterator(), InitParametersFromFile(), ListSize(), NEW, PARAM_EXT, ReadListOfBoxes(), and SOL_EXT.