This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
%% Dual Simplex Method | |
% /DAA/dual_simplex.m | |
% [Description] Solve LP problem using Dual Simplex Method and Bland's Law. | |
% [Author] chaonan99(R) | |
% [Last Modify] 2016/04/03 | |
% [Contact Me] [email protected] | |
% [Note] The input should already have an initial basic solution for the | |
% original problem and a feasible solution for its dual problem. |
This file contains hidden or 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
robo = java.awt.Robot; | |
t = java.awt.Toolkit.getDefaultToolkit(); | |
rectangle = java.awt.Rectangle(t.getScreenSize()); | |
image = robo.createScreenCapture(rectangle); | |
filehandle = java.io.File('capture.png'); | |
javax.imageio.ImageIO.write(image,'png',filehandle); | |
im = imread('capture.png'); | |
imshow(im); |
This file contains hidden or 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
%% Two-Stage Method | |
% /DAA/twostage.m | |
% [Function] Solve LP problem using Two-Stage Method and Bland's Law. | |
% [Author] chaonan99(R) | |
% [Last modify] 2016/03/28 | |
% [Contect me] [email protected] | |
% [Note] | |
% 1. There are no examination on input size, which the user should ensure | |
% its correctness. |
This file contains hidden or 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
%% Simplex Method | |
% /DAA/simplex.m | |
% Solve LP problem using Simplex Method and Bland's Law. | |
% chaonan99(R) | |
% 2016/03/20 | |
% [Note] The input should already have a initial basic feasible solution. | |
% [Thanks to] http://wenku.baidu.com/link?url=bUal8_VtNYHdIXF97JKo_r6vzYt3lGlSFO2W2Wz6wInLnw-3STZpbyxSoaOIu2XKE3z5O4D5xjErH5_tqXY-j3-DubAapkfCuyraVMxMNNO | |
%% code |
NewerOlder