Displaying 2 results from an estimated 2 matches for "eq_constraint".
Did you mean:
__constraint
2025 Apr 30
1
Estimating regression with constraints in model coefficients
...m(beta) - C)
> > > > > > > > }
> > >
>
> > > > > > > > # Define objective and constraint wrapper
> > > > > > > > objective <- function(beta) negLL(beta, X, y, K, cutpoints)
> > > > > > > > eq_constraint <- function(beta) sum_constraint(beta, C = 2) # example >C
> > >
>
> > > > > > > > # Run optimization
> > > > > > > > res <- nloptr(
> > > > > > > > x0 = rep(0, ncol(X)),
> > > > > > >...
2025 May 04
0
Estimating regression with constraints in model coefficients - Follow-up on Constrained Ordinal Model — Optimized via COBYLA
...> > > > > > > }
>
> > > > > > > > > > # Define objective and constraint wrapper
> > > > > > > > > > objective <- function(beta) negLL(beta, X, y, K, cutpoints)
> > > > > > > > > > eq_constraint <- function(beta) sum_constraint(beta, C = 2) # example >C
>
> > > > > > > > > > # Run optimization
> > > > > > > > > > res <- nloptr(
> > > > > > > > > > x0 = rep(0, ncol(X)),
> > > >...