没有合适的资源?快使用搜索试试~ 我知道了~
首页cplex软件Benders框架.doc
资源详情
资源评论
资源推荐

Use IloModel::add() and IloModel::remove():
IloEnv env;
IloModel model(env);
// add the permanent constraints
model.add(IloRange(env, ...));
...
// Create instance of IloCplex that solves model.
IloCplex cplex(model);
// Now loop and use additional temporary constraints in each loop.
for (int i = 0; i < ???; ++i) {
// Create an array of temporary constraints.
IloExtractableArray temporary(env);
temporary.add(IloRange(env, ...)); // Create one temporary
constraint
temporary.add(IloRange(env, ...)); // Create another temporary
constraint
// Add temporary constraints to model. This will notify the
IloCplex instance about the new constraints.
model.add(temporary);
// Solve the problem.

















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0