原创 【VS/Cplex】VS2015配置CPLEX_Studio127

【參考】 1)http://wenku.baidu.com/link?url=pZbWMtFOJgQzukTd5JmYC7Tgz5_9BhaAPXoD5Mp6o9ov1bFMLoxVFlqoMXj9X597LoOY9YLAf7LQJKsK

原创 C++回車換行時停止讀入

若使用 while(c=getchar()!='\n') 會出現編碼問題(博主打印出來全是笑臉) 但是使用 cin>>c; while(c!='\n'){....cin>>c;} 會出現讀得根本停不下來 所以,使用 cin.get(c);

原创 【EXE位置】找不到應用程序絕對路徑

【問題】C++程序需要導入EXCEL,然而右鍵快捷方式找絕對路徑死活找不到 【解決】 1)運行EXCEL 2)打開任務管理器 3)右鍵打開文件所在位置 【PS】竟然能想到這麼做,我也覺得自己很六,雖然還是不知道爲什麼右鍵快捷方式死活找不到

原创 D3.js學習04_enter,update,exit

【學習參考】 【 D3.js 入門系列 — 7 】 理解 Update、Enter、Exit 【 D3.js 入門系列 --- 7 】 理解 update, enter, exit 的使用 爲元素綁定數據後,元素的個數和數據的個數不一定

原创 D3.js學習02_數據綁定data

D3可以將數據集與元素集進行綁定。 datum():綁定一個數據到選擇集上 data():綁定一個數組到選擇集上,數組的各項值分別與選擇集的各元素綁定 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1

原创 C++常用頭文件

#include <iostream> //STL #include <vector> #include <algorithm> #include <queue> using namespace std; //常用方法 void so

原创 Given an N layers triangle in mathematic like the graph below

DescriptionGiven an N layers triangle in mathematic like the graph below. There are many ways that you could walk from

原创 D3.js學習01_HELLOWORLD

使用D3的資源庫,有兩種方式: 1.下載d3.js,並引用(沒有網絡的時候也可以使用,在https://d3js.org/就可以下載) <head> <meta http-equiv="Content-Type" content="tex

原创 【軟著】軟件著作權申請常見問題

【所需文件】http://www.ccopyright.com/index.php?optionid=1080 1、軟件著作權登記申請表 2、軟件(程序、文檔)的鑑別材料 3、有關證明文件:申請人、代理人及聯繫人的身份證明文件、權利歸屬證

原创 【C++/map】map::insert

轉自:http://www.cplusplus.com/reference/map/map/insert/// map::insert (C++98) #include <iostream> #include <map> int mai

原创 【VS/GUROBI】configure a new Gurobi C++ project with Microsoft Visual Studio 2015

【精簡版】 1.配置:release;x64 PS:VS菜單欄中也注意修改 2.C/C++: 常規-》附加包含目錄: C:\gurobi701\win64\include 代碼生成-》運行庫【默認】: 多線程調試 DLL (/MDd)

原创 【VS/GUROBI】解LP示例;column generation

【模型】 \ LP format - for model browsing. Use MPS format to capture full model detail. Maximize   x_0 + x_1 + 2 x_2 Subjec

原创 【Tips/C++】常用小函數

時間 【格式參考:http://www.cplusplus.com/reference/ctime/strftime/】string Util::getTimeStr(time_t t) { struct tm timeinfo; c

原创 【Bug/Cplex】不明原因報錯集合

vs c++工程添加cplex庫後,編譯出現很多錯誤的時候,不一定是代碼有問題,可能是: 【宏定義衝突】 EXAMPLE_1 往項目中添加#include<ilcplex/ilocplex.h>直接報如下錯 1>C:\Program Fi

原创 【C++/Cplex/Benders】vs2015調用cplex自帶benders algorithm

【benders strategy】OFF -1 默認分支定界求解AUTO 0USER 1 完全按照用戶設定的annotationWORKERS 2 先按照用戶的annotation,再自動優化FULL 3 自動確定主問題(整數變量部分)