Cardinal Optimizer (COPT) User~Guide
7.2
Contents
Introduction to Cardinal Optimizer
Installation Guide
COPT Command-Line
COPT Floating Licensing service
COPT Compute Cluster Service
COPT Web Licensing Service
COPT Quick Start
C Interface
C++ Interface
C# Interface
Java Interface
Python Interface
AMPL Interface
Pyomo Interface
PuLP Interface
CVXPY Interface
General Constants
Attributes
Information
Parameters
Modeling and Solving Optimization Problems
MIP Starts
MIP Solution Pool
COPT Tuner
Callbacks
Matrix Modeling Method
Logging
File formats
FAQs
C API Reference
Python API Reference
C++ API Reference
C# API Reference
Java API Reference
Cardinal Optimizer (COPT) User~Guide
»
COPT Quick Start
COPT Quick Start
QuickStart
C Interface
Example details
Creating the environment
Creating the problem
Adding variables
Adding constraints
Setting parameters and attributes
Solve the problem
Analyze the solution
Write problem and solution
Error handling
Delete environment and problem
Build and run
Windows
Linux and MacOS
C++ Interface
Example details
Creating environment and model
Adding variables
Adding constraints
Setting parameters and attributes
Solving problem
Outputting solution
Error handling
Build and Run
Windows
Linux and MacOS
C# Interface
Example details
Creating environment and model
Adding variables
Adding constraints
Setting parameters and attributes
Solving problem
Outputting solution
Error handling
Build and Run
Dotnet core 2.0 project
Java Interface
Example details
Import COPT class
Creating environment and model
Adding variables
Adding constraints
Setting parameters and attributes
Solving problem
Outputting solution
Error Handling
Build and Run
Java example detail
Python Interface
Installation guide
Windows
Linux
MacOS
Example details
Import Python interface
Create environment
Create model
Add variables
Add constraints
Set objective function
Set parameters
Solve model
Analyze solution
Write files
Best Practice
Upgrade to the newer version
Multi-Thread Programming
Dictionary order guarranteed after Python 3.7
Use quicksum and psdquicksum when possible
Operate the model in batch
AMPL Interface
Installation Guide
Windows
Linux
MacOS
Solver Options and Exit Codes
Example Usage
Pyomo Interface
Installation Guide
Using conda
Using pip
Example Usage
Abstract Model
Concrete Model
PuLP Interface
Installation guide
Install via conda
Install via pip
Setup PuLP interface
Introduction of features
Command line
Dynamic library
CVXPY Interface
Installation guide
Install via conda
Install via pip
Setup CVXPY interface
Introduction of features