Karmarkar Gym - Xopt=karmarkar(aeq,beq,c,x0,rtolf,gam,maxiter,outfun,a,b,lb) xopt=karmarkar(aeq,beq,c,x0,rtolf if x0==, the karmarkar function automatically computes a feasible initial guess.