#include <coconut_config.h>
#include <dag.h>
#include <model.h>
#include <vector>
#include <algorithm>
#include <g_algo.h>
#include <cmath>
#include <set>
#include <api_exception.h>
#include <array_vector.h>
#include <sparsity.h>
Go to the source code of this file.
Classes | |
class | coco::sparsity_visitor |
Preorder visitor which calculates sparsity structures. More... | |
Namespaces | |
namespace | coco |
the main namespace of the COCONUT API | |
Defines | |
#define | SP_DBG 0 |
Typedefs | |
typedef std::pair< unsigned int, unsigned int > | coco::ipair |
Row-column index pair. | |
typedef std::set< ipair > | coco::splist |
Sparsity information. | |
Functions | |
void | coco::sparsity (const model &DAG, std::vector< unsigned int > &H_ridx, std::vector< unsigned int > &H_cidx, std::vector< unsigned int > &J_funidx, std::vector< unsigned int > &J_varidx, bool J_with_obj, bool J_obj_is_first, bool org_only, bool H_upper_only, sp_indexing indexing, bool fun_one_based, bool var_one_based) |
Sparsity calculation (Hessian and Jacobian). | |
void | coco::sparsity (const model &DAG, std::vector< unsigned int > &H_ridx, std::vector< unsigned int > &H_cidx, bool org_only, bool H_upper_only, sp_indexing indexing, bool var_one_based) |
Sparsity calculation (Hessian). | |
void | coco::sparsity (const model &DAG, std::vector< unsigned int > &J_funidx, std::vector< unsigned int > &J_varidx, bool J_with_obj, bool J_obj_is_first, bool org_only, sp_indexing indexing, bool fun_one_based, bool var_one_based) |
Sparsity calculation (Jacobian). | |
void | coco::sparsity (const model &DAG, unsigned int &nnz_H, unsigned int *&H_ridx, unsigned int *&H_cidx, bool org_only, bool H_upper_only, sp_indexing indexing, bool fun_one_based, bool var_one_based) |
void | coco::sparsity (const model &DAG, unsigned int &nnz_H, unsigned int *&H_ridx, unsigned int *&H_cidx, unsigned int &nnz_J, unsigned int *&J_funidx, unsigned int *&J_varidx, bool J_with_obj, bool J_obj_is_first, bool org_only, bool H_upper_only, sp_indexing indexing, bool fun_one_based, bool var_one_based) |
Sparsity calculation (Hessian and Jacobian). | |
void | coco::sparsity (const model &DAG, int &nnz_H, int *&H_ridx, int *&H_cidx, int &nnz_J, int *&J_funidx, int *&J_varidx, bool J_with_obj, bool J_obj_is_first, bool org_only, bool H_upper_only, sp_indexing indexing, bool fun_one_based, bool var_one_based) |
Sparsity calculation (Hessian and Jacobian). | |
void | coco::sparsity (const model &DAG, int &nnz_H, int *&H_ridx, int *&H_cidx, bool org_only, bool H_upper_only, sp_indexing indexing, bool var_one_based) |
Sparsity calculation (Hessian). | |
void | coco::sparsity (const model &DAG, unsigned int &nnz_J, unsigned int *&J_funidx, unsigned int *&J_varidx, bool J_with_obj, bool J_obj_is_first, bool org_only, sp_indexing indexing, bool fun_one_based, bool var_one_based) |
Sparsity calculation (Jacobian). | |
void | coco::sparsity (const model &DAG, int &nnz_J, int *&J_funidx, int *&J_varidx, bool J_with_obj, bool J_obj_is_first, bool org_only, sp_indexing indexing, bool fun_one_based, bool var_one_based) |
Sparsity calculation (Jacobian). |
Definition in file sparsity.cc.
#define SP_DBG 0 |
Definition at line 40 of file sparsity.cc.