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

How to use Integer and Float variables in one problem? #95

Closed
simplexity-kaiou opened this issue Dec 22, 2020 · 1 comment
Closed

How to use Integer and Float variables in one problem? #95

simplexity-kaiou opened this issue Dec 22, 2020 · 1 comment

Comments

@simplexity-kaiou
Copy link

How can I mix variables of different types or how can I set which varibles are discrete and which are contiguous like
[0, 1, 0, 2, 1.2, 0.2, 3.6, 1.5] the first four columns are discrete values and the last four columns are continuous values?

@ajnebro
Copy link
Contributor

ajnebro commented Jan 8, 2021

Are the discrete variable values enclosed in a range values? If so, the simplest way would be to work with real values and round the integer ones when evaluating the solutions.

@ajnebro ajnebro closed this as completed Nov 18, 2022
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

No branches or pull requests

2 participants