Modeling with GAMS - Sample Problem 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2025

ความคิดเห็น • 90

  • @world4den
    @world4den 5 ปีที่แล้ว +3

    Thank you, my friend. You saved my ass. I made my hometask, appeared hope to graduate my university and I will not commit suicide =)

  • @alpier1429
    @alpier1429 6 ปีที่แล้ว +3

    thanks bro i just learned how to model my friend !!! you're very helpful, i hope your family will be healthy forever !!!! and happy new year from a fellow german brother !!!

  • @hrvbryn6669
    @hrvbryn6669 6 ปีที่แล้ว +4

    Hi Sir, I am a student of Cavite State University here in the Philippines. We are now formulating a production planning model for lettuce farming system with the objective of minimizing the cost of the raw materials. It is harder than other max problems.

  • @WickedChild95
    @WickedChild95 8 ปีที่แล้ว +3

    Great video, taking CS 524 at UW-Madison and your video helped, thank you so much!

    • @rafaqathus1233
      @rafaqathus1233 6 ปีที่แล้ว

      CAN U PLZ SEND ME GMAIL ,NED TO ASK ABOUT GAMS

  • @فائزهحصیبی-ف1ض
    @فائزهحصیبی-ف1ض 8 หลายเดือนก่อน

    Thans alot your solution is so easy upload more about gams ❤

  • @KevansDied
    @KevansDied 4 หลายเดือนก่อน

    Thank you, sir. You have helped me so much!

  • @yagacademy80
    @yagacademy80 5 ปีที่แล้ว

    Amazing Ammar HARASANI for the dedicated work....I learn a lots....

  • @batula.m.1571
    @batula.m.1571 2 ปีที่แล้ว

    Hi.
    Thank you for saving my life.

  • @ebaifrancis1428
    @ebaifrancis1428 4 ปีที่แล้ว

    Thanks a million, Ammar. I really enjoyed it.

  • @berruz00
    @berruz00 2 ปีที่แล้ว

    Great example!! Thanks fronte Italy

  • @ishmamulhoque97
    @ishmamulhoque97 3 ปีที่แล้ว

    Thank you. It will be helpful if you do another video on solving Mixed Integer Problems using GAMS

  • @dennissilva7531
    @dennissilva7531 3 ปีที่แล้ว +1

    Thank you, man!
    It was really useful!

  • @DrSingaravelanA
    @DrSingaravelanA 5 ปีที่แล้ว +1

    Great Tutorial for beginners.

  • @ysser75fazeli59
    @ysser75fazeli59 2 ปีที่แล้ว

    excellent. thanks for this tutorial

  • @muzafferuyar4601
    @muzafferuyar4601 8 ปีที่แล้ว +1

    Great Tutorial, Thanks Ammar :)

  • @aidafarihin
    @aidafarihin 7 ปีที่แล้ว

    Brilliant! Thank you for helping me solve a simple question for my assignment :)

  • @mohammedalboraich629
    @mohammedalboraich629 4 ปีที่แล้ว

    شكرا جزيلا عمار... محمد من العراق

  • @niakurniasari9616
    @niakurniasari9616 3 ปีที่แล้ว

    Thanks Ammar....

  • @linnartfelklm.sc.6467
    @linnartfelklm.sc.6467 4 ปีที่แล้ว

    great video

  • @rafaqathus1233
    @rafaqathus1233 6 ปีที่แล้ว +1

    VERY GOOD

  • @olayemijohnson6304
    @olayemijohnson6304 ปีที่แล้ว +1

    Hi Ammar, Thanks for the video. This is my first contact with GAMS . I am a student from Nigeria trying to get video on modelling and estimating stochastic DEA problem using GAMS but haven't had contact with any on youtube. Do you have any Idea on stochatic DEA? I really need help. Thank you

  • @linajuliethsuarezmedina4006
    @linajuliethsuarezmedina4006 6 ปีที่แล้ว +1

    Hi. I changed my Gams version and now my results are different. I am working in a MILP algorithm and I am using the Baron and Cplex solvers. I don't understand what is the problem. The version I installed is 29.5 version. Help me please! Thanks!

  • @rebeccaheckmann6453
    @rebeccaheckmann6453 4 ปีที่แล้ว

    Thanks for this advices!

  • @arwaabougharib8698
    @arwaabougharib8698 5 ปีที่แล้ว +3

    Tried to replicate the same model but got different results. May be this has to do with the error "Model has an unbounded ray".. See 13:43

  • @HameedLeghari
    @HameedLeghari 8 ปีที่แล้ว

    great sir

  • @efemenaekagha3406
    @efemenaekagha3406 3 ปีที่แล้ว

    Thank you alot brother.

  • @syrianmusic1403
    @syrianmusic1403 7 ปีที่แล้ว

    Excellent! Many thanks.

  • @thussain4609
    @thussain4609 ปีที่แล้ว

    why you stopped uploading these videos ..its really helpful bro

  • @rajaramprajapati9157
    @rajaramprajapati9157 8 ปีที่แล้ว

    hello sir, i ve gone through the tutorial video u have posted on youtube about gams.. i want to learn more .. i ll be glad if u provide me some more tutorials

  • @manoshidehingia3674
    @manoshidehingia3674 4 ปีที่แล้ว

    Hello sir! I would like to know if the Objective Function is a constraint?

  • @fconteEBdotcom
    @fconteEBdotcom 7 ปีที่แล้ว

    Thank you for the video!

  • @md.asadujjaman7667
    @md.asadujjaman7667 4 ปีที่แล้ว

    Do you have any lecture on resource constrained project scheduling problems?

  • @amrualqurashi1030
    @amrualqurashi1030 8 ปีที่แล้ว

    Can you do an stochastic programming problem where scenario reduction through SCENRED is used?

  • @shamunnay
    @shamunnay 5 ปีที่แล้ว +1

    Thanks for the useful video. However, simplex should be written as LP = Splex;

  • @milhampasha1426
    @milhampasha1426 7 ปีที่แล้ว

    Great tutorial but the results different to mine, still very helpful

  • @1001ramin
    @1001ramin 7 ปีที่แล้ว

    thank you very much ammar

  • @naseral-mansouri9515
    @naseral-mansouri9515 8 ปีที่แล้ว

    Thank you Ammar

  • @cudihistory1905
    @cudihistory1905 7 ปีที่แล้ว +3

    The solution in my computer didn't was the same that yours. Why?

    • @dami4862
      @dami4862 6 ปีที่แล้ว +2

      His iteration remains one, and I don't know how that came into existence...x1=3.909...

    • @weihnachten362
      @weihnachten362 6 ปีที่แล้ว +1

      @@dami4862 same problem here :(

    • @giovannihernandez3208
      @giovannihernandez3208 5 ปีที่แล้ว +2

      I replicated the exercise, here is the code:
      Positive variable x1;
      Free variable x2, z;
      Negative variable x3;
      Equations
      Con1,
      Con2,
      Con3,
      Obj;
      Con1.. x1 + x2 + x3 =L= 7;
      Con2.. 4*x1 + 2*x2 =E= 40;
      Con3.. 10*x1 + x3 =G= 30;
      Obj.. 30*x1 + 100*x2 - 50*x3 =E= z;
      Model InterTest /all/;
      Options LP = Cplex;
      Solve InterTest using LP maximizing z;
      Display x1.L, x2.L, x3.L, z.L ;
      My results are different:
      VARIABLE x1.L = 3.909
      VARIABLE x2.L = 12.182
      VARIABLE x3.L = -9.091
      VARIABLE z.L = 1790.000

  • @deepakmishra4176
    @deepakmishra4176 3 ปีที่แล้ว

    Sir 7-8 constraints ka koi problem mil jayega

  • @hosseinheydaryan7308
    @hosseinheydaryan7308 8 ปีที่แล้ว

    thnx for Ammar
    from Tehran university

  • @estherasare1123
    @estherasare1123 7 ปีที่แล้ว

    how do i solve the problem of unboundness in my model?

  • @Eng.HumamGhazal
    @Eng.HumamGhazal ปีที่แล้ว

    I wrote the same exact code and I got this error:
    *** WARNING: Presolve found the problem infeasible or unbounded
    --- Cplex diagnoses the model to be either infeasible or unbounded.
    --- There is no such GAMS Model Status so returning with a status of infeasible.
    --- Model has been proven to be either infeasible or unbounded
    And all the results are zero. Any help?

    • @msadelinetzl1407
      @msadelinetzl1407 3 หลายเดือนก่อน

      Hi, not sure if you still need help, I try to check with gpt, it says that change the x2 to positive variable, then there are answers for x1,x2,x3,z but definitely different answers from the answers shown in this video. ( For reference: x1 =10, x2 =0, x3= -70, z=3800)

  • @ahmedabbas9856
    @ahmedabbas9856 3 ปีที่แล้ว

    I need more example please to understand the variable , con , obj etc

  • @begumdeniz3800
    @begumdeniz3800 8 ปีที่แล้ว +9

    Your result does not satisfy the problem :( put them in the equations! you will see...

    • @aliengineer5458
      @aliengineer5458 7 ปีที่แล้ว

      tesekkurlar begum hanim i am stady in ankara what about u

    • @rafaqathus1233
      @rafaqathus1233 6 ปีที่แล้ว

      CAN U PLZ SEND ME GMAIL ,NED TO ASK ABOUT GAMS

  • @estherasare1123
    @estherasare1123 7 ปีที่แล้ว

    how can i set bounds in my model?

  • @arvintavanaei6614
    @arvintavanaei6614 6 ปีที่แล้ว +9

    The result does not satisfy the second constraint. 4x1+2x2 has to be equal to 40. Obviously, x1=0.1 and x2= -0.2 does not satisfy this equation.

    • @giovannihernandez3208
      @giovannihernandez3208 5 ปีที่แล้ว +15

      I replicated the excercise, here is the code:
      Positive variable x1;
      Free variable x2, z;
      Negative variable x3;
      Equations
      Con1,
      Con2,
      Con3,
      Obj;
      Con1.. x1 + x2 + x3 =L= 7;
      Con2.. 4*x1 + 2*x2 =E= 40;
      Con3.. 10*x1 + x3 =G= 30;
      Obj.. 30*x1 + 100*x2 - 50*x3 =E= z;
      Model InterTest /all/;
      Options LP = Cplex;
      Solve InterTest using LP maximizing z;
      Display x1.L, x2.L, x3.L, z.L ;
      My results are different:
      VARIABLE x1.L = 3.909
      VARIABLE x2.L = 12.182
      VARIABLE x3.L = -9.091
      VARIABLE z.L = 1790.000

    • @sunshinehero1422
      @sunshinehero1422 5 ปีที่แล้ว +1

      @@giovannihernandez3208 same here

    • @Jotapalomo
      @Jotapalomo 5 ปีที่แล้ว

      Same happened to me, any explanation for this? I even use the same spaces between letters and numbers

    • @AmirElShennawi
      @AmirElShennawi 4 ปีที่แล้ว

      @@giovannihernandez3208 same results

    • @AJK544
      @AJK544 4 ปีที่แล้ว +1

      @@giovannihernandez3208 Same bro~

  • @haftuhiluf1266
    @haftuhiluf1266 3 ปีที่แล้ว

    thanks

  • @lazuardialdi9818
    @lazuardialdi9818 5 ปีที่แล้ว

    have you license of GAME?

  • @samanmohsenirad2942
    @samanmohsenirad2942 6 ปีที่แล้ว

    Thanks, bro.

    • @rafaqathus1233
      @rafaqathus1233 6 ปีที่แล้ว

      CAN U PLZ SEND ME GMAIL ,NED TO ASK ABOUT GAMS

  • @muhammadibrahimshah9627
    @muhammadibrahimshah9627 4 ปีที่แล้ว

    I press f9 in keyboard but the results do not show

  • @Dr.Ali_Jawad
    @Dr.Ali_Jawad 2 ปีที่แล้ว

    اكمل الدروس الشرح جميل

  • @Tauhid214
    @Tauhid214 4 ปีที่แล้ว

    Hi, could you please upload how to write a disjunctive problem, for example, Max\{f(X)| X satisfies eq1 or eq2 or eq3\}.

  • @maryamhajibabaie8015
    @maryamhajibabaie8015 5 ปีที่แล้ว

    Hello
    I have a problem in flexible job shop code in gams
    Can anyone help me?

  • @raghadjassimghayadh4000
    @raghadjassimghayadh4000 2 ปีที่แล้ว

    عاشت ايدك

  • @احمدعبدالصاحب-ل5غ
    @احمدعبدالصاحب-ل5غ 8 ปีที่แล้ว

    احسنت لكن ممكن ان تشرح على موضوع GAMS CODE CO-OPTIMIZATION باستخدام MATHMATICAL FORMULATION

  • @gmgs16556
    @gmgs16556 4 ปีที่แล้ว

    thx

  • @WaqarAhmad-mt8nq
    @WaqarAhmad-mt8nq 4 ปีที่แล้ว

    Bro i need help

  • @amritojha4020
    @amritojha4020 7 ปีที่แล้ว

    sir upload more videos

  • @Hamdan-qg2wt
    @Hamdan-qg2wt 7 ปีที่แล้ว

    اشكرك على الشرح الدرس هل هناك شرح بالعربية

    • @alpier1429
      @alpier1429 6 ปีที่แล้ว

      بولي بصمت غبية ، والحشوات هي الأم

    • @alashhab
      @alashhab 3 ปีที่แล้ว

      th-cam.com/video/ZGxxe5D3jkM/w-d-xo.html

  • @b.fricke1894
    @b.fricke1894 6 ปีที่แล้ว

    Hallo das ist Kool

  • @faisalalshehri2082
    @faisalalshehri2082 2 ปีที่แล้ว

    تشرح خصوصي البرنامج

  • @oumaimasahtout9114
    @oumaimasahtout9114 6 ปีที่แล้ว

    please help me who knows how to work on gams

    • @rafaqathus1233
      @rafaqathus1233 6 ปีที่แล้ว

      CAN U PLZ SEND ME GMAIL ,NED TO ASK ABOUT GAMS

    • @alpier1429
      @alpier1429 6 ปีที่แล้ว

      @@rafaqathus1233 i can tell you anything about gams. give me your gmail and ill do it for free (and your password)

  • @kald241
    @kald241 3 ปีที่แล้ว

    KFUPM is the best university in the world.

  • @mariamhotak1296
    @mariamhotak1296 6 ปีที่แล้ว

    school driven

  • @Utkirdjan
    @Utkirdjan 8 ปีที่แล้ว

    very bad description. Super not good:) first is give sets.

  • @mohs369
    @mohs369 ปีที่แล้ว

    ممكن رقم الواتس اتواصل معاك؟

  • @rohiniharidas
    @rohiniharidas 3 ปีที่แล้ว

    Thanks