#########Load the SOS pathway data #######
data(sos)
#########Set Slope and Initial Beta #######
Slope<- s_diff(sos)
S<- Slope[1,] #S is the slope of the row you want to calculate. You can either input a vector yourself.
beta<- runif(n=1,min=1,max=10)
#########Set parameters #######
sparsity<- 0.2
lbH<- -3
ubH<- 3
lbB<- 0
ubB<- 10
#########Calculate results #######
result_r<-row_optimize(sos,S,beta,sparsity,lbH,ubH,lbB,ubB)
Run the code above in your browser using DataLab