added numVars to objective output in StructuredProblemWriter