Echtzeitsysteme / gips

Graph-Based (M)ILP Problem Specification Tool
https://gips.dev
GNU General Public License v3.0
3 stars 1 forks source link

GLPK: invalid row length #32

Closed maxkratz closed 1 year ago

maxkratz commented 2 years ago

GLPK ILP solver implementation:

constraint -> global {
    mappings.n2n->sum(m | m.value()) == mappings.n2n->sum(m | m.value())
}

generates an error like this:

glp_set_mat_row: i = 2; len = 20; invalid row length 
Error detected in file ..\src\api\prob1.c at line 763
maxkratz commented 2 years ago

Also happens for this constraint:

constraint -> global {
    mappings.n2n->count() == mappings.n2n->count()
}