This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 { |