Skip to content

Conversation

@kwesiRutledge
Copy link
Contributor

Summary

Introduced the first few end-to-end tests of the simplexSolver (compatible with the SymbolicMath.go library).

Example Usage

package main

import (
	"github.com/MatProGo-dev/simplex/simplexSolver"
	"github.com/MatProGo-dev/simplex/utils/examples"
)

func main() {
	// Get the example tableau
	problem5 := examples.GetTestProblem5()

	// // Print the problem
	// println(problem5.String())

	// Use solver to solve the problem
	solver := simplexSolver.New("Simplex Solver Example")
	solver.IterationLimit = 100

	//

	// Solve the problem
	solution, err := solver.Solve(*problem5)
	if err != nil {
		panic(err)
	}

	// Print the solution
	solutionMessage, _ := solution.Status.ToMessage()
	println("Solution Status: ", solutionMessage)
	println("Objective Value: ", solution.Objective)
}

@codecov
Copy link

codecov bot commented Sep 29, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@kwesiRutledge kwesiRutledge merged commit 58b26b5 into main Sep 29, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants