"""
This type stub file was generated by pyright.
"""

import sys
from .core import LpSolver, LpSolver_CMD

"""
This type stub file was generated by pyright.
"""
if sys.version_info >= (3, 0):
    coptstr = ...
else:
    ...
byref = ...
class COPT_CMD(LpSolver_CMD):
    """
    The COPT command-line solver
    """
    name = ...
    def __init__(self, path=..., keepFiles=..., mip=..., msg=..., mip_start=..., warmStart=..., logfile=..., **params) -> None:
        """
        Initialize command-line solver
        """
        ...
    
    def defaultPath(self):
        """
        The default path of 'copt_cmd'
        """
        ...
    
    def available(self):
        """
        True if 'copt_cmd' is available
        """
        ...
    
    def actualSolve(self, lp):
        """
        Solve a well formulated LP problem

        This function borrowed implementation of CPLEX_CMD.actualSolve and
        GUROBI_CMD.actualSolve, with some modifications.
        """
        ...
    
    def readsol(self, filename):
        """
        Read COPT solution file
        """
        ...
    
    def writemst(self, filename, lpvars):
        """
        Write COPT MIP start file
        """
        ...
    


def COPT_DLL_loadlib():
    """
    Load COPT shared library in all supported platforms
    """
    ...

coptlpstat = ...
coptctype = ...
coptrsense = ...
coptobjsen = ...
class COPT_DLL(LpSolver):
    """
    The COPT dynamic library solver
    """
    name = ...
    coptlib = ...


class COPT(LpSolver):
    """
    The COPT Optimizer via its python interface

    The COPT variables are available (after a solve) in var.solverVar
    Constraints in constraint.solverConstraint
    and the Model is in prob.solverModel
    """
    name = ...


