only call set_vartype when both problems are not continuous.
add getbasis support.