How to define a subset of some variables integers?

The possibility of extension of a variable set already defined was considered and discarded here. (But there is a workaround if you need one, you just need to create anonymous variables, call set_name over them, and append! them to the already existing model[:var_name] vector.)

However, if you can define all variables first, then you can just change part of them to integer after, see here.

2 Likes