Currently every variable must be present in the objective function otherwise no solution will be found. The workaround currently is to fill unused variables in the objective function with 0, however this should be done automatically by the library.