SimpleMipProgram add import region tag

This commit is contained in:
Corentin Le Molgat
2019-05-13 10:04:00 +02:00
parent 15fffb8409
commit 3eea98e3ad
4 changed files with 8 additions and 0 deletions

View File

@@ -12,8 +12,10 @@
// limitations under the License.
// [START program]
// [START import]
using System;
using Google.OrTools.LinearSolver;
// [END import]
public class SimpleMipProgram
{

View File

@@ -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 {

View File

@@ -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() {

View File

@@ -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():