sem. The user would not
normally call these functions directly, but rather supply one of them in the objective argument to
sem. Users may also write their own objective functions.objectiveML(gradient=TRUE)
objectiveGLS(gradient=FALSE)TRUE, the object that's returned includes a function for computing an analytic gradient; there is at present no
analytic gradient available for objectiveGLS."semObjective", with up to two elements:sem.sem, optimizers