Skip to content

Instantly share code, notes, and snippets.

package edu.ua.math420.rbb.simplex.revised;
import java.util.Arrays;
public class Matrix {
private Double[][] matrix;
private int height;
private int width;
private boolean transposed;
public Tableau makeArtificial() {
Matrix tmp = getA().mergeRight(Matrix.identity(constraints)).mergeRight(getRHS()); //insert identity
tmp = tmp.mergeDown(new Matrix(1,vars).extend(0,constraints,1d).extend(0,1)); //add new cost row
return new Tableau(tmp);
}
vs
public Tableau makeArtificial() {
return new Tableau(getA().mergeRight(Matrix.identity(constraints)).mergeRight(
package cs515.hw3;
public class OneWayListTest
{
public static void main(String[] args)
{
// Creating a new OneWayList
OneWayList<Integer> list = new OneWayList<Integer>();
// On creation, both lists should be empty
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../core-icons/iconsets/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
:host {