Skip to content

Conversation

@jurasofish
Copy link
Contributor

This allows you to get the value of linear expressions in the solution, just as with Vars through the x parameter.

I wrote up the same code for xi but didn't have any tests to run against it so decided to leave it out.

Copy link
Contributor

@h-g-s h-g-s left a comment

Choose a reason for hiding this comment

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

Thanks for the patch. One thing that @tuliotoffolo is changing (and already can be incorporated in this patch) is instead of using float we are using numbers.Real to improve compatibility with numpy .

So please change Optional[float] -> Optional[numbers.Real]

adding the appropriate import numbers before

Cheers

@jurasofish
Copy link
Contributor Author

easy

@h-g-s h-g-s merged commit ab794f6 into coin-or:master Apr 26, 2020
@jurasofish jurasofish deleted the eval_linexpr branch April 26, 2020 23:08
jGaboardi pushed a commit to jGaboardi/python-mip that referenced this pull request Jul 28, 2020
* get value from linear expressions

* return numbers.Real

Former-commit-id: ab794f6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants