Loading...
Searching...
No Matches
dy_consys.h File Reference
`#include "dy_vector.h"`
`#include "dylib_io.h"`
`#include "dylib_std.h"`
Include dependency graph for dy_consys.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes

struct | coeff_struct_tag
struct | colhdr_struct_tag
struct | rowhdr_struct_tag
struct | conmtx_struct
struct | attvhdr_struct_tag
struct | conbnd_struct
struct | consys_struct

## Macros

#define | CONSYS_MTX ((flags) 1<<0)
#define | CONSYS_ROW ((flags) 1<<1)
#define | CONSYS_COL ((flags) 1<<2)
#define | CONSYS_OBJ ((flags) 1<<3)
#define | CONSYS_VUB ((flags) 1<<4)
#define | CONSYS_VLB ((flags) 1<<5)
#define | CONSYS_RHS ((flags) 1<<6)
#define | CONSYS_CUB ((flags) 1<<7)
#define | CONSYS_CLB ((flags) 1<<8)
#define | CONSYS_RHSLOW ((flags) 1<<9)
#define | CONSYS_VTYP ((flags) 1<<10)
#define | CONSYS_CTYP ((flags) 1<<11)
#define | CONSYS_COLHDR ((flags) 1<<12)
#define | CONSYS_ROWHDR ((flags) 1<<13)
#define | CONSYS_RSCALE ((flags) 1<<14)
#define | CONSYS_CSCALE ((flags) 1<<15)
#define | CONSYS_ROWVEC
#define | CONSYS_COLVEC
#define | VALID_ATTVTYPE(zz_vectype_zz)
#define | VALID_CONTYPE(zz_ctyp_zz)
#define | VALID_VARTYPE(zz_vtyp_zz)
#define | INT_VARTYPE(zz_vtyp_zz)
#define | CONSYS_LVARS ((flags) 1<<0)
#define | CONSYS_WRNZERO ((flags) 1<<1)
#define | CONSYS_WRNATT ((flags) 1<<2)
#define | CONSYS_FININF ((flags) 1<<3)
#define | CONSYS_CORRUPT ((flags) 1<<4)
#define | CONSYS_MAXBUFLEN 32

## Typedefs

typedef struct coeff_struct_tag | coeff_struct
typedef struct colhdr_struct_tag | colhdr_struct
typedef struct rowhdr_struct_tag | rowhdr_struct
typedef struct attvhdr_struct_tag | attvhdr_struct

## Enumerations

enum | contyp_enum { contypINV = 0 , contypNB , contypGE , contypEQ , contypLE , contypRNG }
enum | vartyp_enum { vartypINV = 0 , vartypCON , vartypINT , vartypBIN }

## Functions

consys_struct * | consys_create (const char *nme, flags parts, flags opts, int concnt, int varcnt, double infinity)
bool | consys_dupsys (consys_struct *src, consys_struct **dst, flags dstvecs)
void | consys_free (consys_struct *consys)
bool | consys_realloc (consys_struct *consys, char rowcol, int incr)
bool | consys_attach (consys_struct *consys, flags what, int elsze, void **pvec)
bool | consys_update (consys_struct *consys, void *oldvec, void *newvec)
bool | consys_detach (consys_struct *consys, void **pvec, bool all)
bool | consys_addcol_pk (consys_struct *consys, vartyp_enum vartyp, pkvec_struct *pkcol, double obj, double vlb, double vub)
bool | consys_addcol_ex (consys_struct *consys, vartyp_enum vartyp, const char **nme, double *excol, double obj, double vlb, double vub)
bool | consys_addrow_pk (consys_struct *consys, char rowclass, contyp_enum contyp, pkvec_struct *pkrow, double rhs, double rhslow, conbnd_struct *cub, conbnd_struct *clb)
bool | consys_getcol_pk (consys_struct *consys, int colndx, pkvec_struct **pkvec)
bool | consys_getcol_ex (consys_struct *consys, int colndx, double **vec)
bool | consys_getrow_pk (consys_struct *consys, int rowndx, pkvec_struct **pkvec)
bool | consys_getrow_ex (consys_struct *consys, int rowndx, double **vec)
bool | consys_delcol (consys_struct *consys, int colndx)
bool | consys_delrow (consys_struct *consys, int rowndx)
bool | consys_delrow_stable (consys_struct *consys, int rowndx)
bool | consys_setcoeff (consys_struct *consys, int rowndx, int colndx, double val)
double | consys_getcoeff (consys_struct *consys, int rowndx, int colndx)
bool | consys_logicals (consys_struct *consys)
int | consys_gcdrow (consys_struct *consys, int rowndx)
double | consys_dotcol (consys_struct *consys, int colndx, double *vec)
double | consys_dotrow (consys_struct *consys, int rowndx, double *vec)
double | consys_1normrow (consys_struct *consys, int rowndx)
double | consys_ssqrow (consys_struct *consys, int rowndx)
double | consys_2normrow (consys_struct *consys, int rowndx)
double | consys_infnormrow (consys_struct *consys, int rowndx)
double | consys_1normcol (consys_struct *consys, int rowndx)
double | consys_ssqcol (consys_struct *consys, int rowndx)
double | consys_2normcol (consys_struct *consys, int rowndx)
double | consys_infnormcol (consys_struct *consys, int rowndx)
bool | consys_mulrow (consys_struct *consys, int rowndx, double scalar)
bool | consys_divrow (consys_struct *consys, int rowndx, double scalar)
bool | consys_accumcol (consys_struct *consys, int colndx, double *vec)
bool | consys_mulaccumcol (consys_struct *consys, int colndx, double scalar, double *vec)
bool | consys_evalsys (consys_struct *consys, double *scm, int *gecnt)
bool | consys_geomscale (consys_struct *consys, double **rowscale, double **colscale)
bool | consys_equiscale (consys_struct *consys, double **rowscale, double **colscale)
bool | consys_applyscale (consys_struct *consys, bool convctyp, double *rowscale, double *colscale)
const char * | consys_prtvartyp (vartyp_enum vartyp)
const char * | consys_prtcontyp (contyp_enum contyp)
char * | consys_assocnme (consys_struct *consys, flags which)
char * | consys_conbndnme (char bndlett, int cndx, conbnd_struct *bnd)
char * | consys_conbndval (conbnd_struct *bnd)
void | consys_prtcon (ioid chn, bool echo, consys_struct *consys, int i, const char *pfx)
void | consys_chgnme (consys_struct *consys, char cv, int ndx, const char *newnme)
const char * | consys_nme (consys_struct *consys, char cv, int ndx, bool pfx, char *clientbuf)

## Macro Definition Documentation

## CONSYS_MTX

#define CONSYS_MTX ((flags) 1<<0)

Definition at line 208 of file dy_consys.h.

## CONSYS_ROW

#define CONSYS_ROW ((flags) 1<<1)

Definition at line 209 of file dy_consys.h.

## CONSYS_COL

#define CONSYS_COL ((flags) 1<<2)

Definition at line 210 of file dy_consys.h.

## CONSYS_OBJ

#define CONSYS_OBJ ((flags) 1<<3)

Definition at line 211 of file dy_consys.h.

## CONSYS_VUB

#define CONSYS_VUB ((flags) 1<<4)

Definition at line 212 of file dy_consys.h.

## CONSYS_VLB

#define CONSYS_VLB ((flags) 1<<5)

Definition at line 213 of file dy_consys.h.

## CONSYS_RHS

#define CONSYS_RHS ((flags) 1<<6)

Definition at line 214 of file dy_consys.h.

## CONSYS_CUB

#define CONSYS_CUB ((flags) 1<<7)

Definition at line 215 of file dy_consys.h.

## CONSYS_CLB

#define CONSYS_CLB ((flags) 1<<8)

Definition at line 216 of file dy_consys.h.

## CONSYS_RHSLOW

#define CONSYS_RHSLOW ((flags) 1<<9)

Definition at line 217 of file dy_consys.h.

## CONSYS_VTYP

#define CONSYS_VTYP ((flags) 1<<10)

Definition at line 218 of file dy_consys.h.

## CONSYS_CTYP

#define CONSYS_CTYP ((flags) 1<<11)

Definition at line 219 of file dy_consys.h.

## CONSYS_COLHDR

#define CONSYS_COLHDR ((flags) 1<<12)

Definition at line 220 of file dy_consys.h.

## CONSYS_ROWHDR

#define CONSYS_ROWHDR ((flags) 1<<13)

Definition at line 221 of file dy_consys.h.

## CONSYS_RSCALE

#define CONSYS_RSCALE ((flags) 1<<14)

Definition at line 222 of file dy_consys.h.

## CONSYS_CSCALE

#define CONSYS_CSCALE ((flags) 1<<15)

Definition at line 223 of file dy_consys.h.

## CONSYS_ROWVEC

#define CONSYS_ROWVEC

Value:
(CONSYS_OBJ|CONSYS_VUB|CONSYS_VLB|CONSYS_VTYP|CONSYS_CSCALE| \
CONSYS_COLHDR|CONSYS_ROW)
CONSYS_VTYP
#define CONSYS_VTYP
Definition dy_consys.h:218
CONSYS_CSCALE
#define CONSYS_CSCALE
Definition dy_consys.h:223
CONSYS_VLB
#define CONSYS_VLB
Definition dy_consys.h:213
CONSYS_VUB
#define CONSYS_VUB
Definition dy_consys.h:212
CONSYS_OBJ
#define CONSYS_OBJ
Definition dy_consys.h:211
CONSYS_ROW
#define CONSYS_ROW
Definition dy_consys.h:209
CONSYS_COLHDR
#define CONSYS_COLHDR
Definition dy_consys.h:220

Definition at line 228 of file dy_consys.h.

## CONSYS_COLVEC

#define CONSYS_COLVEC

Value:
(CONSYS_RHS|CONSYS_RHSLOW|CONSYS_CUB|CONSYS_CLB|CONSYS_CTYP|CONSYS_RSCALE| \
CONSYS_ROWHDR|CONSYS_COL)
CONSYS_CTYP
#define CONSYS_CTYP
Definition dy_consys.h:219
CONSYS_CLB
#define CONSYS_CLB
Definition dy_consys.h:216
CONSYS_RSCALE
#define CONSYS_RSCALE
Definition dy_consys.h:222
CONSYS_RHSLOW
#define CONSYS_RHSLOW
Definition dy_consys.h:217
CONSYS_COL
#define CONSYS_COL
Definition dy_consys.h:210
CONSYS_ROWHDR
#define CONSYS_ROWHDR
Definition dy_consys.h:221
CONSYS_CUB
#define CONSYS_CUB
Definition dy_consys.h:215
CONSYS_RHS
#define CONSYS_RHS
Definition dy_consys.h:214

Definition at line 232 of file dy_consys.h.

## VALID_ATTVTYPE

#define VALID_ATTVTYPE | ( |  | zz_vectype_zz | ) |

Value:
(zz_vectype_zz == CONSYS_OBJ || \
zz_vectype_zz == CONSYS_VUB || zz_vectype_zz == CONSYS_VLB || \
zz_vectype_zz == CONSYS_RHS || zz_vectype_zz == CONSYS_RHSLOW || \
zz_vectype_zz == CONSYS_CUB || zz_vectype_zz == CONSYS_CUB || \
zz_vectype_zz == CONSYS_VTYP || zz_vectype_zz == CONSYS_CTYP || \
zz_vectype_zz == CONSYS_RSCALE || zz_vectype_zz == CONSYS_CSCALE || \
zz_vectype_zz == CONSYS_ROW || zz_vectype_zz == CONSYS_COL)

Definition at line 240 of file dy_consys.h.

## VALID_CONTYPE

#define VALID_CONTYPE | ( |  | zz_ctyp_zz | ) |

Value:
(zz_ctyp_zz == contypGE || zz_ctyp_zz == contypEQ || \
zz_ctyp_zz == contypLE || zz_ctyp_zz == contypRNG)
contypRNG
@ contypRNG
Definition dy_consys.h:339
contypLE
@ contypLE
Definition dy_consys.h:339
contypGE
@ contypGE
Definition dy_consys.h:339
contypEQ
@ contypEQ
Definition dy_consys.h:339

Definition at line 341 of file dy_consys.h.

## VALID_VARTYPE

#define VALID_VARTYPE | ( |  | zz_vtyp_zz | ) |

Value:
(zz_vtyp_zz == vartypCON || \
zz_vtyp_zz == vartypINT || \
zz_vtyp_zz == vartypBIN)
vartypBIN
@ vartypBIN
Definition dy_consys.h:355
vartypINT
@ vartypINT
Definition dy_consys.h:355
vartypCON
@ vartypCON
Definition dy_consys.h:354

Definition at line 357 of file dy_consys.h.

## INT_VARTYPE

#define INT_VARTYPE | ( |  | zz_vtyp_zz | ) |

Value:
(zz_vtyp_zz == vartypINT || \
zz_vtyp_zz == vartypBIN)

Definition at line 362 of file dy_consys.h.

## CONSYS_LVARS

#define CONSYS_LVARS ((flags) 1<<0)

Definition at line 394 of file dy_consys.h.

## CONSYS_WRNZERO

#define CONSYS_WRNZERO ((flags) 1<<1)

Definition at line 395 of file dy_consys.h.

## CONSYS_WRNATT

#define CONSYS_WRNATT ((flags) 1<<2)

Definition at line 396 of file dy_consys.h.

## CONSYS_FININF

#define CONSYS_FININF ((flags) 1<<3)

Definition at line 397 of file dy_consys.h.

## CONSYS_CORRUPT

#define CONSYS_CORRUPT ((flags) 1<<4)

Definition at line 398 of file dy_consys.h.

## CONSYS_MAXBUFLEN

#define CONSYS_MAXBUFLEN 32

Definition at line 625 of file dy_consys.h.

## Typedef Documentation

## coeff_struct

typedef struct coeff_struct_tag coeff_struct

## colhdr_struct

typedef struct colhdr_struct_tag colhdr_struct

## rowhdr_struct

typedef struct rowhdr_struct_tag rowhdr_struct

## attvhdr_struct

typedef struct attvhdr_struct_tag attvhdr_struct

## Enumeration Type Documentation

## contyp_enum

enum contyp_enum

Enumerator
contypINV |
contypNB |
contypGE |
contypEQ |
contypLE |
contypRNG |

Definition at line 338 of file dy_consys.h.

## vartyp_enum

enum vartyp_enum

Enumerator
vartypINV |
vartypCON |
vartypINT |
vartypBIN |

Definition at line 354 of file dy_consys.h.

## Function Documentation

## consys_create()

consys_struct * consys_create | ( | const char * | nme,
|  | flags | parts,
|  | flags | opts,
|  | int | concnt,
|  | int | varcnt,
|  | double | infinity
| ) |  |

extern

## consys_dupsys()

bool consys_dupsys | ( | consys_struct * | src,
|  | consys_struct ** | dst,
|  | flags | dstvecs
| ) |  |

extern

## consys_free()

void consys_free | ( | consys_struct * | consys | ) |

extern

## consys_realloc()

bool consys_realloc | ( | consys_struct * | consys,
|  | char | rowcol,
|  | int | incr
| ) |  |

extern

## consys_attach()

bool consys_attach | ( | consys_struct * | consys,
|  | flags | what,
|  | int | elsze,
|  | void ** | pvec
| ) |  |

## consys_update()

bool consys_update | ( | consys_struct * | consys,
|  | void * | oldvec,
|  | void * | newvec
| ) |  |

## consys_detach()

bool consys_detach | ( | consys_struct * | consys,
|  | void ** | pvec,
|  | bool | all
| ) |  |

## consys_addcol_pk()

bool consys_addcol_pk | ( | consys_struct * | consys,
|  | vartyp_enum | vartyp,
|  | pkvec_struct * | pkcol,
|  | double | obj,
|  | double | vlb,
|  | double | vub
| ) |  |

extern

## consys_addcol_ex()

bool consys_addcol_ex | ( | consys_struct * | consys,
|  | vartyp_enum | vartyp,
|  | const char ** | nme,
|  | double * | excol,
|  | double | obj,
|  | double | vlb,
|  | double | vub
| ) |  |

## consys_addrow_pk()

bool consys_addrow_pk | ( | consys_struct * | consys,
|  | char | rowclass,
|  | contyp_enum | contyp,
|  | pkvec_struct * | pkrow,
|  | double | rhs,
|  | double | rhslow,
|  | conbnd_struct * | cub,
|  | conbnd_struct * | clb
| ) |  |

## consys_getcol_pk()

bool consys_getcol_pk | ( | consys_struct * | consys,
|  | int | colndx,
|  | pkvec_struct ** | pkvec
| ) |  |

## consys_getcol_ex()

bool consys_getcol_ex | ( | consys_struct * | consys,
|  | int | colndx,
|  | double ** | vec
| ) |  |

## consys_getrow_pk()

bool consys_getrow_pk | ( | consys_struct * | consys,
|  | int | rowndx,
|  | pkvec_struct ** | pkvec
| ) |  |

## consys_getrow_ex()

bool consys_getrow_ex | ( | consys_struct * | consys,
|  | int | rowndx,
|  | double ** | vec
| ) |  |

## consys_delcol()

bool consys_delcol | ( | consys_struct * | consys,
|  | int | colndx
| ) |  |

## consys_delrow()

bool consys_delrow | ( | consys_struct * | consys,
|  | int | rowndx
| ) |  |

## consys_delrow_stable()

bool consys_delrow_stable | ( | consys_struct * | consys,
|  | int | rowndx
| ) |  |

## consys_setcoeff()

bool consys_setcoeff | ( | consys_struct * | consys,
|  | int | rowndx,
|  | int | colndx,
|  | double | val
| ) |  |

extern

## consys_getcoeff()

double consys_getcoeff | ( | consys_struct * | consys,
|  | int | rowndx,
|  | int | colndx
| ) |  |

extern

## consys_logicals()

bool consys_logicals | ( | consys_struct * | consys | ) |

extern

## consys_gcdrow()

int consys_gcdrow | ( | consys_struct * | consys,
|  | int | rowndx
| ) |  |

extern

## consys_dotcol()

double consys_dotcol | ( | consys_struct * | consys,
|  | int | colndx,
|  | double * | vec
| ) |  |

extern

## consys_dotrow()

double consys_dotrow | ( | consys_struct * | consys,
|  | int | rowndx,
|  | double * | vec
| ) |  |

## consys_1normrow()

double consys_1normrow | ( | consys_struct * | consys,
|  | int | rowndx
| ) |  |

extern

## consys_ssqrow()

double consys_ssqrow | ( | consys_struct * | consys,
|  | int | rowndx
| ) |  |

## consys_2normrow()

double consys_2normrow | ( | consys_struct * | consys,
|  | int | rowndx
| ) |  |

## consys_infnormrow()

double consys_infnormrow | ( | consys_struct * | consys,
|  | int | rowndx
| ) |  |

## consys_1normcol()

double consys_1normcol | ( | consys_struct * | consys,
|  | int | rowndx
| ) |  |

## consys_ssqcol()

double consys_ssqcol | ( | consys_struct * | consys,
|  | int | rowndx
| ) |  |

## consys_2normcol()

double consys_2normcol | ( | consys_struct * | consys,
|  | int | rowndx
| ) |  |

## consys_infnormcol()

double consys_infnormcol | ( | consys_struct * | consys,
|  | int | rowndx
| ) |  |

## consys_mulrow()

bool consys_mulrow | ( | consys_struct * | consys,
|  | int | rowndx,
|  | double | scalar
| ) |  |

extern

## consys_divrow()

bool consys_divrow | ( | consys_struct * | consys,
|  | int | rowndx,
|  | double | scalar
| ) |  |

extern

## consys_accumcol()

bool consys_accumcol | ( | consys_struct * | consys,
|  | int | colndx,
|  | double * | vec
| ) |  |

extern

## consys_mulaccumcol()

bool consys_mulaccumcol | ( | consys_struct * | consys,
|  | int | colndx,
|  | double | scalar,
|  | double * | vec
| ) |  |

extern

## consys_evalsys()

bool consys_evalsys | ( | consys_struct * | consys,
|  | double * | scm,
|  | int * | gecnt
| ) |  |

extern

## consys_geomscale()

bool consys_geomscale | ( | consys_struct * | consys,
|  | double ** | rowscale,
|  | double ** | colscale
| ) |  |

extern

## consys_equiscale()

bool consys_equiscale | ( | consys_struct * | consys,
|  | double ** | rowscale,
|  | double ** | colscale
| ) |  |

## consys_applyscale()

bool consys_applyscale | ( | consys_struct * | consys,
|  | bool | convctyp,
|  | double * | rowscale,
|  | double * | colscale
| ) |  |

## consys_prtvartyp()

const char * consys_prtvartyp | ( | vartyp_enum | vartyp | ) |

extern

## consys_prtcontyp()

const char * consys_prtcontyp | ( | contyp_enum | contyp | ) |

## consys_assocnme()

char * consys_assocnme | ( | consys_struct * | consys,
|  | flags | which
| ) |  |

extern

## consys_conbndnme()

char * consys_conbndnme | ( | char | bndlett,
|  | int | cndx,
|  | conbnd_struct * | bnd
| ) |  |

## consys_conbndval()

char * consys_conbndval | ( | conbnd_struct * | bnd | ) |

## consys_prtcon()

void consys_prtcon | ( | ioid | chn,
|  | bool | echo,
|  | consys_struct * | consys,
|  | int | i,
|  | const char * | pfx
| ) |  |

extern

## consys_chgnme()

void consys_chgnme | ( | consys_struct * | consys,
|  | char | cv,
|  | int | ndx,
|  | const char * | newnme
| ) |  |

extern

## consys_nme()

const char * consys_nme | ( | consys_struct * | consys,
|  | char | cv,
|  | int | ndx,
|  | bool | pfx,
|  | char * | clientbuf
| ) |  |

extern