comparison org/lpsolve.org @ 14:ecb6e3f9b7d6

minor edits
author Robert McIntyre <rlm@mit.edu>
date Sun, 05 Feb 2012 11:17:14 -0700
parents e1b7ef479bd1
children 7698e9bdff2b
comparison
equal deleted inserted replaced
13:e1b7ef479bd1 14:ecb6e3f9b7d6
830 ":rock" 0.0} 830 ":rock" 0.0}
831 #+end_example 831 #+end_example
832 832
833 Ghost and Psychic are a powerful dual type combo in the original games, 833 Ghost and Psychic are a powerful dual type combo in the original games,
834 due to a glitch which made Psychic immune to Ghost type attacks, even 834 due to a glitch which made Psychic immune to Ghost type attacks, even
835 though the game claims that Ghost is strong to Psychic. 835 though the game claims that Ghost is strong against Psychic.
836 836
837 #+begin_src clojure :results verbatim :exports both 837 #+begin_src clojure :results verbatim :exports both
838 (pokemon.lpsolve/solution (pokemon.lpsolve/best-attack-type)) 838 (pokemon.lpsolve/solution (pokemon.lpsolve/best-attack-type))
839 #+end_src 839 #+end_src
840 840
1273 immune to some types, such as Flying, which is immune to Ground. A 1273 immune to some types, such as Flying, which is immune to Ground. A
1274 perfectly weak type could not use any of these types. 1274 perfectly weak type could not use any of these types.
1275 1275
1276 * Summary 1276 * Summary
1277 1277
1278 Overall, the pok\eacute{}mon type system is slanted more towards 1278 Overall, the pok\eacute{}mon type system is slanted towards defense
1279 defense rather than offense. While it is possible to create superior 1279 rather than offense. While it is possible to create superior
1280 defensive types and exceptionally weak attack types, it is not 1280 defensive types and exceptionally weak attack types, it is not
1281 possible to create exceptionally weak defensive types or very powerful 1281 possible to create exceptionally weak defensive types or very powerful
1282 attack types. 1282 attack types.
1283 1283
1284 Using the =lp_solve= library was more complicated than the best-first 1284 Using the =lp_solve= library was more complicated than the best-first
1287 hard to ask questions such as "what is the best 3-type defensive combo 1287 hard to ask questions such as "what is the best 3-type defensive combo
1288 in terms of susceptibility?", since susceptibility is not a linear 1288 in terms of susceptibility?", since susceptibility is not a linear
1289 function of a combo's types. It is also hard to get all the solutions 1289 function of a combo's types. It is also hard to get all the solutions
1290 to a particular problem, such as all the pokemon type combinations of 1290 to a particular problem, such as all the pokemon type combinations of
1291 length 8 which are immortal defense types. 1291 length 8 which are immortal defense types.
1292
1293 1292
1294 * COMMENT main-program 1293 * COMMENT main-program
1295 #+begin_src clojure :tangle ../src/pokemon/lpsolve.clj :noweb yes :exports none 1294 #+begin_src clojure :tangle ../src/pokemon/lpsolve.clj :noweb yes :exports none
1296 <<intro>> 1295 <<intro>>
1297 <<body>> 1296 <<body>>