ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] Excel ³W¹º¨D¸Ñªº¨Mµ¦ÅܼÆ(decision variable)

[µo°Ý] Excel ³W¹º¨D¸Ñªº¨Mµ¦ÅܼÆ(decision variable)

½Ð°ª¤H«üÂI¡G
Excel ³W¹º¨D¸Ñªº¨Mµ¦ÅܼÆ(decision variable)  ­­©w200­Ó¡A³o200¬O¦p¦ó­p¼Æ?
1.¥uºâ¨Mµ¦ÅܼÆÀx¦s®æ?
2.­­¨î¦¡¤º¦³¥Î¨ì ¨Mµ¦ÅÜ¼Æ ¤]ºâ?
3. ¤u§@ªíÀx¦s®æ¤ºªº­pºâ¦¡¦³¥Î¨ì ¨Mµ¦ÅÜ¼Æ ¤]ºâ?
4.  ¤W­±3ÃþªºÁ`©M?
5. ¨ä¥L .....  ?

ÁÂÁÂ

¥»©«³Ì«á¥Ñ Scott090 ©ó 2014-7-12 09:02 ½s¿è

¦^´_ 1# Scott090


    :D  ³o­ÓÃD¥Ø¦n¹³¤£¬O¦nÃD¥Ø¡Asolver.com ¹ï¦p¦ó©w¸q­pºâ¤£¸Ô?
¨Æ±¡¬O³o¼Ëªº:
     ¥ÎVBA¨Ó´£¥Î Solver,¨S¦³¸Ñ¡A±o¨ìªº¦^À³½X¬O 13¡F ª½±µ¨ì¤u§@ªí¨Ï¥Î³W¹º¨D¸Ñ¡A±o¨ìªº¬OÃD¥Ø¤Ó¤jµLªk¸Ñ¡F
¹ê»Ú­pºâ¨Mµ¦Åܼƪº­Ó¼Æ¬O 43¡A¤]´N¬O»¡43­Ó¨Mµ¦ÅܼÆÀx¦s®æ¡A¬°¤°»ò·|»¡¬OÃD¥Ø¤Ó¤j??? ¤£¸Ñ
­­¨î¦¡ªº¤¹³\¬O³Ì¦h 100±ø¡A¹ê»Ú­pºâ¤]¨S¹F100±ø

©Ò¥H´N½Ð±Ð½å®v¹F¤H¤F

TOP

¦^´_ 2# Scott090


    Ä~Äòª¦¤å§äµª®×¤¤
Ä~Äòµ¥«Ý½å¹F¤¯§gµ¹¤©¨ó§U

TOP

¦^´_ 3# Scott090


    Excel2010 ¼Ð·Ç ³W¹º¨D¸Ñ ªºÅܼÆ(decision variable) ­Ó¼Æ 200¡A ¦ý¬O¨S¦³ª½±µ´¦ÅSªº¬O ÅܼƦr¦ê¤£¯à¶W¥X255¦r¤¸¡A
¦]¬°³o­Ó¨S´¦ÅSªº­­¨î¦Ó³Q·d±o¦nºG¦Ó¤£ª¾¡Aª¦¤å¤@°ï¤]¤£¨£¦³¤H´£¥X¡A¯S§O¼g¥X¥H¨Ñ°Ñ¦Ò
¨Ò¦p  ÅܼƦb "AE12"¡A "AB13"¡A ¥¦·|Åܦ¨¦¨ "$AE$12,$AB$13"¡A¦p¦¹ªº 2­ÓÅܼÆÀx¦s®æ¥e¥Î 13­Ó¦r¤¸¡F¥Î¦b«D½u©Ê¨D¸Ñ»Ý¯S§Oª`·N¦w±Æ

­­¨î¦¡ 100 ±ø¡A ÅܼƤW¤U­­´N2±ø¤F !!  ¥i¥H¥Îªº¸ê·½¹ê¦b¤£¦h¡A¯à¦³ÅܼƬÛÃö¥i¥H¸ÑªR¸ÑªººÉ¥i¯à¤£³]ÅܼơA¤£¥[­­¨î¦¡
¶W¥X 100±ø¡Aµª®×¬O"ÃD¥Ø¤Ó¤j"

TOP

¦^´_  Scott090


    Excel2010 ¼Ð·Ç ³W¹º¨D¸Ñ ªºÅܼÆ(decision variable) ­Ó¼Æ 200¡A ¦ý¬O¨S¦³ª½±µ´¦ ...
Scott090 µoªí©ó 2015-7-10 07:50


¸É¥R»¡©ú¡G
Åܼƪº¤W©Î¤U­­¦pªG¬O±`¼Æ¡A¤£ºâ¬°­­¨î¦¡
¨Ò¦p ¦ÛÅÜ¼Æ X <=5.01 ¤£­p¬°­­¨î¦¡ªº¼Æ¶q
    ¦p X <= y + 2.5 ¡A¨ä¤¤ y ¬O¦ÛÅܼƩΦÛÅܼƭl¥Íªº¼Æ¡A«h X <= y + 2.5 ­p¬°¤@±ø­­¨î¦¡

¥H¤Wªº²z¸Ñ¦p¦³¿ù»~¡A½Ð°ª¤â©Î¦P¦n«ü¥¿¡A¥H¨Ï¯à¥¿½T¶i¨B

TOP

¦^´_ 5# Scott090

¨Ï¥Î»¡©ú¨SÁ¿²M·¡ªºªFªF
­­¨î¦¡¤º§t©w¸q¦WºÙªº¼gªk¡G
     ³q±` : SolverAdd CellRef:="$AV$6", Relation:=2, Formulatext:=1    '..... ¦¡(1)  ¨ä¤¤ "$AV$6" ¥Nªíªº¬OÀx¦s®æªº¦ì¸m
     °²¦p ©w¸q¤F¤@­Ó range ª«¥ó range("AV6: AV10") ªº¦WºÙ ¬O "Name1" ¡A«h
               SolverAdd CellRef:=[Name1].rows(1).address, Relation:=2, Formulatext:=1  'ªº·N¸q©M ¦¡(1) §¹¥þ¤@¼Ë
               SolverAdd CellRef:=[Name1].rows(1).address, Relation:=2, Formulatext:= "=1"  'ªº·N¸q©M ¦¡(1) §¹¥þ¤@¼Ë
               SolverAdd CellRef:=[Name1].rows(1), Relation:=2, Formulatext:= "=1"  'ªº·N¸q©M ¦¡(1) §¹¥þ¤@¼Ë
               SolverAdd CellRef:="Name1", Relation:=2, Formulatext:=1   'Name1 ¤º¨C¤@®æÀx¦s®æªº­È ³£³Q­­¨î¬° "= 1"
               SolverAdd CellRef:="Name1", Relation:=1, Formulatext:=1   '.... ¦¡(2)    Name1 ¤º¨C¤@®æÀx¦s®æªº­È ³£³Q­­¨î¬° "<= 1"
               SolverAdd CellRef:=[Name1], Relation:=1, Formulatext:=1   '©M¦¡(2)·N¸q¬Û¦P

TOP

        ÀR«ä¦Û¦b : ÀR§¤±`®¦¤v¹L¡B¶¢½Í²ö½×¤H«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD