Skip to content

Instantly share code, notes, and snippets.

@dzolnai
Created January 17, 2017 18:46
Show Gist options
  • Save dzolnai/afce4c91f8b2151674335a441c689e6b to your computer and use it in GitHub Desktop.
Save dzolnai/afce4c91f8b2151674335a441c689e6b to your computer and use it in GitHub Desktop.
Simplex solver article - gist 6
for (int j = start_index; j < end_index; j++) {
float value = get_element(tableau, tableau->rows - 1, j);
rsSetElementAt_float(solution_vector, value, j - start_index);
}
rsSetElementAt_int(result_size, end_index - start_index, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment