Skip to content

Instantly share code, notes, and snippets.

@daynebatten
Created May 21, 2015 18:15
Show Gist options
  • Select an option

  • Save daynebatten/9feb0045c6fbb76c59dc to your computer and use it in GitHub Desktop.

Select an option

Save daynebatten/9feb0045c6fbb76c59dc to your computer and use it in GitHub Desktop.
/* Minimize sum of cells suppressed, with a small punishment for suppressing an unnecssary number of cells (e.g., suppressing all 0's) */
minimize target = (sum{i in dec_set} values[i] * choices[i]) + (sum{i in dec_set} choices[i] * .0001);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment