Displaying 3 results from an estimated 3 matches for "eval_g_eq".
Did you mean:
eval_g_ineq
2013 Jan 03
0
help with NLOPTR
...reekp) * (x[3]^(b1 - 1) * b1)) +
x[2] * ((N2/A) * (g2^greekp) * (x[3]^(b2 - 1) * b2)))),
-(alphah * (x[1] * (1 - exp(-2 * D * v1 * N1)) + x[2] * (1 -
exp(-2 * D * v2 * N2)))),
0))
}
############################## 2 Equality Constraint Functions
##############################
eval_g_eq = function (x) {
return( c( ( ( ((pq*(x[5]^beeta))+((1-x[1]) * (
(p1*((N1/A)*(g1^greekp)*(x[3]^b1)) ) -
(delta1*((theta+mu)*(((N1/A)*g1^greekp*x[3]^b1)+K))) ))
+((1-x[2]) * ( (p2*((N2/A)*(g2^greekp)*(x[3]^b2))) -
(delta2*((theta+mu)*(((N2/A)*g2^greekp*x[3]^b2)+K))) ))
+((1-x[1]) * ( (p1*((1...
2025 Apr 30
1
Estimating regression with constraints in model coefficients
...; res <- nloptr(
> > > > > > > > x0 = rep(0, ncol(X)),
> > > > > > > > eval_f = objective,
> > > > > > > > lb = lower_bounds,
> > > > > > > > ub = upper_bounds,
> > > > > > > > eval_g_eq = eq_constraint,
> > > > > > > > opts = list(algorithm = "NLOPT_LD_SLSQP", xtol_rel = 1e-8)
> > > > > > > > )
> > >
>
> > > > > > > The next step would be writing the actual log-likelihood for your specific p...
2025 May 04
0
Estimating regression with constraints in model coefficients - Follow-up on Constrained Ordinal Model — Optimized via COBYLA
...> > > > x0 = rep(0, ncol(X)),
> > > > > > > > > > eval_f = objective,
> > > > > > > > > > lb = lower_bounds,
> > > > > > > > > > ub = upper_bounds,
> > > > > > > > > > eval_g_eq = eq_constraint,
> > > > > > > > > > opts = list(algorithm = "NLOPT_LD_SLSQP", xtol_rel = 1e-8)
> > > > > > > > > > )
>
> > > > > > > > > The next step would be writing the actual log-likelihood fo...