chocoteam / chocoteam/choco-solver

[FEATURE] ArExpression.intVar should allow naming of the variable

Open
#783 1 comment 0 reactions 1 assignee Claimed by @cprudhom View on GitHub
feature
Dominant language
Java
Stars
779
Forks
159
Avg merge
6d 9h
Merged PRs (30d)
10

Description

When creating a variable using an arithmetic expression, the variable would be more identifiable in output if it could be named for a problem domain concept.

## Expected behavior
ArExpression.intVar accepts an optional `name` argument, that is used instead of the generated name.

## Actual behavior
Currently ArExpression.intVar implementations generate a name based on the arithmetic operator being used, which makes it hard to trace in output.

## Context
When using a model with multiple arithmetic constraints using the same arithmetic operator, it is unclear in any output which variable was generated by which constraint.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.