Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly size ConstraintsMatrixCoeff and ColumnIndexes #2208

Closed
wants to merge 3 commits into from

Conversation

JasonMarechal25
Copy link
Contributor

ConstraintsMatrixCoeff and ColumnIndexes collections are initially oversized (By a large factor).
Before exporting data through API we properly dimension them and remove extra 0 padding

@flomnes flomnes changed the title Properly sise ConstraintsMatrixCoeff and ColumnIndexes Properly size ConstraintsMatrixCoeff and ColumnIndexes Jun 28, 2024
Comment on lines +178 to +179
ProblemeAResoudre->Pi.resize(nombreDeVariables);
ProblemeAResoudre->Colonne.resize(nombreDeVariables);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All is good except for this. These are temporary variables used in ConstraintBuilder::OPT_ChargerLaContrainteDansLaMatriceDesContraintes. You don't need to resize them

@JasonMarechal25 JasonMarechal25 changed the base branch from develop to feature/resize June 28, 2024 08:49
@JasonMarechal25 JasonMarechal25 deleted the feature/api_tweaks branch June 28, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants