SimpleMipProgram add import region tag
This commit is contained in:
@@ -12,8 +12,10 @@
|
||||
// limitations under the License.
|
||||
|
||||
// [START program]
|
||||
// [START import]
|
||||
using System;
|
||||
using Google.OrTools.LinearSolver;
|
||||
// [END import]
|
||||
|
||||
public class SimpleMipProgram
|
||||
{
|
||||
|
||||
@@ -13,10 +13,12 @@
|
||||
|
||||
// Minimal example to call the MIP solver.
|
||||
// [START program]
|
||||
// [START import]
|
||||
import com.google.ortools.linearsolver.MPConstraint;
|
||||
import com.google.ortools.linearsolver.MPObjective;
|
||||
import com.google.ortools.linearsolver.MPSolver;
|
||||
import com.google.ortools.linearsolver.MPVariable;
|
||||
// [END import]
|
||||
|
||||
/** Minimal Mixed Integer Programming example to showcase calling the solver. */
|
||||
public class SimpleMipProgram {
|
||||
|
||||
@@ -13,7 +13,9 @@
|
||||
|
||||
// Mixed Integer programming example that shows how to use the API.
|
||||
// [START program]
|
||||
// [START import]
|
||||
#include "ortools/linear_solver/linear_solver.h"
|
||||
// [END import]
|
||||
|
||||
namespace operations_research {
|
||||
void simple_mip_program() {
|
||||
|
||||
@@ -12,8 +12,10 @@
|
||||
# limitations under the License.
|
||||
"""Integer programming examples that show how to use the APIs."""
|
||||
# [START program]
|
||||
# [START import]
|
||||
from __future__ import print_function
|
||||
from ortools.linear_solver import pywraplp
|
||||
# [END import]
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user