<commit_before>#*****************************************************#
# This file is part of GRIDOPT.                       #
#                                                     #
# Copyright (c) 2015, <NAME>.         #
#                                                     #
# GRIDOPT is released under the BSD 2-clause license. #
#*****************************************************#

import time
import numpy as np
from method import TwoStageDCOPF_Method
from problem import TwoStageDCOPF_Problem
from scipy.sparse import eye,coo_matrix,bmat
from optalg.opt_solver import OptSolverIQP, QuadProblem

class LShaped(TwoStageDCOPF_Method):
    """
    L-shaped method for solving two-stage DCOPF problems.
    """

    parameters = {'scenarios':100,
                  'maxiters':100,
                  'samples':300,
                  't_max':1e6,
                  'z_max':1e6}
    
    def __init__(self):

        TwoStageDCOPF_Method.__init__(self)
        self.parameters = LShaped.parameters.copy()
    
    def create_problem(self,net):

        return TwoStageDCOPF_Problem(net)<commit_msg>cleaned up l-shape method<commit_after>#*****************************************************#
# This file is part of GRIDOPT.                       #
#                                                     #
# Copyright (c) 2015, <NAME>.         #
#                                                     #
# GRIDOPT is released under the BSD 2-clause license. #
#*****************************************************#

import time
import numpy as np
from method import TwoStageDCOPF_Method
from problem import TwoStageDCOPF_Problem
from scipy.sparse import eye,coo_matrix,bmat
from optalg.opt_solver import OptSolverIQP, QuadProblem

class LShaped(TwoStageDCOPF_Method):
    """
    L-shaped method for solving two-stage DCOPF problems.
    """
    
    parameters = {'scenarios':100,
                  'maxiters':30,
                  'samples':300,
                  't_max':1e6,
                  'z_max':1e6}
    
    def __init__(self):

        TwoStageDCOPF_Method.__init__(self)
        self.parameters = LShaped.parameters.copy()
    
    def create_problem(self,net):

        return TwoStageDCOPF_Problem(net)
{'fraction_non_alphanumeric': 0.170797656602073, 'fraction_numerical': 0.015772870662460567, 'mean_word_length': 2.028649386084584, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4033436', 'n_tokens_mistral': 635, 'n_tokens_neox': 575, 'n_words': 134}