パラメーター ファイルは、ファイル内の Cbc (スタンドアロン) コマンドのリスト (1 行に 1 つ) で構成されます。コマンドの形式は次のとおりです(ドキュメントを引用):
One command per line (and no -)
abcd? gives list of possibilities, if only one + explanation
abcd?? adds explanation, if only one fuller help(LATER)
abcd without value (where expected) gives current value
abcd value or abcd = value sets value
コマンドは次のとおりです。
? dualT(olerance) primalT(olerance) inf(easibilityWeight)
integerT(olerance) inc(rement) allow(ableGap) ratio(Gap)
fix(OnDj) tighten(Factor) log(Level) slog(Level)
maxN(odes) strong(Branching) direction error(sAllowed)
gomory(Cuts) probing(Cuts) knapsack(Cuts) oddhole(Cuts)
clique(Cuts) round(ingHeuristic) cost(Strategy) keepN(ames)
scaling directory solver import
export save(Model) restore(Model) presolve
initialS(olve) branch(AndBound) sol(ution) max(imize)
min(imize) time(Limit) exit stop
quit - stdin unitTest
miplib ver(sion)
解の値を表示するには、パラメータ ファイルのまたは行のsol
後に -行を含める必要があります。min
max
これで問題が解決しない場合は、このページから問題をAMPL形式でNEOS に送信できます。モデル ファイルとデータ ファイルに加えて、ステートメントを使用して問題を解決し、ソリューションを表示できるコマンド ファイルを受け入れます。次に例を示します。
solve;
display _varname, _var;
この投稿では、MPS を AMPL に変換する方法について説明します。