Created
August 23, 2020 16:43
-
-
Save mhsharifi96/529b78544f14b1798e6767cf46cb7fad to your computer and use it in GitHub Desktop.
BCC model OutPut Oriented Lingo Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! BCC model OutPut Oriented Lingo Code; | |
! write by mohammad hossein | |
sharifi Aug 2020; | |
model: | |
sets: | |
dmu/1..10/; !10 dmu; | |
input/1..4/:v; !4 input; | |
output/1..3/:u; !3 output ; | |
link(input,dmu):x; !xij 4*10; | |
linke(output,dmu):y; !yrj 3*10; | |
endsets | |
data: | |
x y=@ole('C:\Users\mohammad hossein\Documents\vru\lingo\code\book.xlsx','x','y'); | |
enddata | |
min=@sum(input(i):v(i)*x(i,o))+w; | |
@sum(output(r):u(r)*y(r,o))=1; | |
@for(dmu(j):@sum(input(i):v(i)*x(i,j))-@sum(output(r):u(r)*y(r,j))+w>=0); | |
@free(w); | |
calc: | |
@for(dmu(j):o=j; | |
@solve(); | |
); | |
endcalc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment