# similar function as fmincon in python?

I am trying to solve an optimization problem where I do not have the analytic form of the objective function. I am doing analysis by FEM to find a value for displacement in each iteration but I don't have the displacement function itself. How can I minimize displacement (Objective function) then? For example this can be done in matlab with fmincon easily. How can we do the same in python? I do the following in matlab

x = fmincon(fun,v,[],[],Aeq,beq,lb,ub,[],opts);

where
fun is a function I have written that returns a vector from Finite Element Method
and in opts I have specified interior point as follows

• I think this forum is not the right for this kind of question. Furthermore, I am quite surprised you haven't found the scipy.optimize package yet ;) Feb 26 at 19:54