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

Better handling of variable bounds for BOOL variables #2560

Conversation

flomnes
Copy link
Member

@flomnes flomnes commented Jan 7, 2025

Make it so that the user doesn't need to provide lower & upper bounds for Boolean variables.

@flomnes flomnes requested a review from pet-mit January 7, 2025 13:59
@flomnes flomnes added bug Something isn't working Modeleur labels Jan 7, 2025
{
case Study::SystemModel::ValueType::BOOL:
{
pb.addVariable(0., 1., true, variableID);
Copy link
Contributor

Choose a reason for hiding this comment

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

the user might define lb / ub (for example ub can be a model parameter). it's only in the case where the user doesn't define lb/ub that we should us these default values. maybe set them in the Variable object model to keep this code simple?

@flomnes flomnes requested a review from pet-mit January 7, 2025 15:21
Copy link
Contributor

@pet-mit pet-mit left a comment

Choose a reason for hiding this comment

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

ok for me, just add unit tests

@flomnes
Copy link
Member Author

flomnes commented Jan 8, 2025

This topic is too complex to be handled without a proper spec

@flomnes flomnes closed this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Modeleur size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants